Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nimaposhtiban/redux-middleware-async
pass promises to the action with no worries
https://github.com/nimaposhtiban/redux-middleware-async
Last synced: 9 days ago
JSON representation
pass promises to the action with no worries
- Host: GitHub
- URL: https://github.com/nimaposhtiban/redux-middleware-async
- Owner: NimaPoshtiban
- Created: 2021-01-17T14:25:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-01T20:46:47.000Z (almost 4 years ago)
- Last Synced: 2024-08-11T08:51:35.261Z (5 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redux-middleware-async
pass promises to the action with no worries
## How does it works?
So simple just apply that middleware in your project by importing {applyMiddleware} from redux## Instalation
```
npm install asyncmiddlewareredux
```
then to enable Redux-middleware-async ,use ```applyMiddleware()```:
```
import { createStore, applyMiddleware } from 'redux';
import AsyncRedux from 'asyncmiddlewareredux';
import rootReducer from './reducers/index';const store = createStore(rootReducer, applyMiddleware(AsyncRedux));
```
![NimaPoshtiban's GitHub stats](https://github-readme-stats.vercel.app/api?username=nimaposhtiban&show_icons=true&theme=dark)