Skip to content

Commit

Permalink
feat(README): update usage of handleFulfilled
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixeladed committed Aug 19, 2020
1 parent 17ad3da commit 3825fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const booksSlice = createSlice({

// use the handler as part of a reducer
[fetchBooks.fulfilled.type]: (state, action) => {
asyncAdapter.handleFulfilled(fetchBooks)
asyncAdapter.handleFulfilled(fetchBooks)(state)
state = action.payload
},

Expand Down

0 comments on commit 3825fd3

Please sign in to comment.