Skip to content

Commit d32970b

Browse files
authored
docs: add missing title "features/posts/postsSlice.ts" to code block in "Post Reaction Buttons" section (#4826)
1 parent ed951a1 commit d32970b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/essentials/part-4-using-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ Then, we can define a new reducer that will handle updating the reaction count f
919919
920920
Like with editing posts, we need to know the ID of the post, and which reaction button the user clicked on. We'll have our `action.payload` be an object that looks like `{id, reaction}`. The reducer can then find the right post object, and update the correct reactions field.
921921
922-
```ts
922+
```ts title="features/posts/postsSlice.ts"
923923
import { createSlice, nanoid, PayloadAction } from '@reduxjs/toolkit'
924924
import { sub } from 'date-fns'
925925

0 commit comments

Comments
 (0)