We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af460f3 commit c865ca5Copy full SHA for c865ca5
docs/api/createEntityAdapter.md
@@ -324,7 +324,7 @@ const booksSlice = createSlice({
324
booksReceived(state, action) {
325
if (state.loading === 'pending') {
326
// Or, call them as "mutating" helpers in a case reducer
327
- booksAdapter.setAll(state, action.payload.books)
+ booksAdapter.setAll(state, action.payload)
328
state.loading = 'idle'
329
}
330
},
0 commit comments