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 c44b2c7 commit 500be81Copy full SHA for 500be81
README.md
@@ -300,6 +300,23 @@ function fetchUser(id) {
300
}
301
```
302
303
+To pass multiple things, just wrap them in a single object and use destructuring:
304
+
305
+```js
306
307
+const store = createStore(
308
+ reducer,
309
+ applyMiddleware(thunk.withExtraArgument({ api, whatever }))
310
+)
311
312
+// later
313
+function fetchUser(id) {
314
+ return (dispatch, getState, { api, whatever }) => {
315
+ // you can use api and something else here here
316
+ }
317
+}
318
+```
319
320
321
## License
322
0 commit comments