Skip to content

Commit bcae801

Browse files
docs: fix typo
We get "selectAllPosts" and "selectPostById" as a result of destructuring "postsSlice.selectors" field.
1 parent 1099cec commit bcae801

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
@@ -568,7 +568,7 @@ const postsSlice = createSlice({
568568
// highlight-end
569569
})
570570

571-
export const { postAdded, postUpdated } = postsSlice.selectors
571+
export const { selectAllPosts, selectPostById } = postsSlice.selectors
572572

573573
export default postsSlice.reducer
574574

0 commit comments

Comments
 (0)