redux-ext
Version:
This simple package allow you to use Redux store all across the webextension.
32 lines (23 loc) • 736 B
Markdown
from 'redux';
import {MainStore} from 'redux-ext';
import {reducers} from './reducers.js';
import {defaultState} from './defaultState.js';
let _store = createStore(reducers,
defaultState,
compose(applyMiddleware(/*%ALL YOUR MIDDLEWARE%*/))),
store = new MainStore(_store, 'myname');
store.dispatch(/*...*/);
```
```javascript
import {ProxyStore} from 'redux-ext';
let store = new ProxyStore('myname');
store.ready().then(() => {
/*your code*/
});
```
This simple package allow you to use Redux store all across the webextension.
```javascript
import {compose, applyMiddleware, createStore}