We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3310cff commit 10991b2Copy full SHA for 10991b2
src/redux/middleware/clientMiddleware.js
@@ -4,7 +4,7 @@ import httpService from '../../services/httpService.js';
4
* If you manage async actions, this will remove a lot of boilerplate,
5
* Accepts an action with an object of the form:
6
* {
7
- * type: ['LOAD', 'LOAD_SUCCESS', 'LOAD_FAILURE'],
+ * types: ['LOAD', 'LOAD_SUCCESS', 'LOAD_FAILURE'],
8
* promise: (client) => client.get('/url') // needs to return a promise - using the client is not mandatory
9
* }
10
* It remains compliant with normal actions (see src/redux/modules/multipleUsers.js for example)
0 commit comments