This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from mpeyper/middleware-tests
Added tests and documentation for redux-promise middleware
- Loading branch information
Showing
10 changed files
with
1,442 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# redux-promise | ||
|
||
The [`redux-promise` middleware](https://github.com/acdlite/redux-promise) works simply by using [Redux Subspaces `applyMiddleware` function](/docs/advanced/middleware/README.md). | ||
|
||
```javascript | ||
import { createStore } from 'redux' | ||
import { applyMiddleware } from 'redux-subspace' | ||
import promiseMiddleware from 'redux-promise' | ||
|
||
const store = createStore(reducer, applyMiddleware(promiseMiddleware)) | ||
``` | ||
|
||
Now, the resulting actions when the promises resolve will be namespace correctly from the store they were dispatched from. |
Oops, something went wrong.