This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

redux-ext

1.1.4 • Public • Published

Redux-ext

This simple package allow you to use Redux store all across the webextension.

How to use

In background.js:

import {compose, applyMiddleware, createStore} 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(/*...*/);

In content or popup:

import {ProxyStore} from 'redux-ext';
 
let store = new ProxyStore('myname');
 
store.ready().then(() => {
    /*your code*/
});

Package Sidebar

Install

npm i redux-ext

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

10.6 kB

Total Files

9

Last publish

Collaborators

  • anissoft