Skip to content

Commit 7c5b005

Browse files
Fix error in createAsyncThunk.mdx
"users" should be "entities" as defined in state
1 parent 1a85a20 commit 7c5b005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/createAsyncThunk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ const usersSlice = createSlice({
560560
})
561561

562562
const UsersComponent = () => {
563-
const { users, loading, error } = useSelector((state) => state.users)
563+
const { entities, loading, error } = useSelector((state) => state.users)
564564
const dispatch = useDispatch()
565565

566566
const fetchOneUser = async (userId) => {

0 commit comments

Comments
 (0)