Skip to content

Commit 895b6d4

Browse files
authored
fix(docs): thunk integration example returns object correctly - @karltaylor
Fix thunk integration example to return object correctly
2 parents d35f948 + 3d2f159 commit 895b6d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/integrations/thunks.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ const store = createStore(
3030
After following the setup above, `getFirebase` function becomes available within your thunks as the third argument:
3131

3232
```javascript
33-
const sendNotification = (payload) => {
33+
const sendNotification = (payload) => ({
3434
type: NOTIFICATION,
3535
payload
36-
}
36+
})
37+
3738
export const addTodo = (newTodo) =>
3839
(dispatch, getState, getFirebase) => {
3940
const firebase = getFirebase()

0 commit comments

Comments
 (0)