Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

redux-replaceable-middleware

1.1.0 • Public • Published

redux-replaceable-middleware

Redux middleware that allows replacement.

API

const ReplaceableMiddleware = require('redux-replaceable-middleware')
 
var replaceableMiddleware = ReplaceableMiddleware();
 
const store = Redux.createStore(
  reducer,
  Redux.applyMiddleware(replaceableMiddleware))
 
setTimeout(function() {
  replaceableMiddleware.replaceBy(SomeNewMiddleware())
}, 1000);

Options

You can access the Redux options argument like this:

replaceableMiddleware.options // contains redux options
 
replaceableMiddleware.options.dispatch({action});

License

ISC

install

npm i redux-replaceable-middleware

Downloadsweekly downloads

93

version

1.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability