Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

jcoreio/redux-plugins-immutable-hot-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redux-plugins-immutable-hot-loader

Webpack loader that hot-reloads plugins made with redux-plugins-immutable when you make changes to them.

Usage

(Assumes you are already using redux-plugins-immutable in your app, and know how to run webpack in dev mode with hot reloading enabled)

npm install --save redux-plugins-immutable-hot-loader

To require and add a plugin to your store:

import store from './myStore'
import {pluginActions} from 'redux-plugins-immutable'
import MyPlugin from 'redux-plugins-immutable-hot!./MyPlugin'

store.dispatch(pluginActions.addPlugin(MyPlugin))

after this, if you make changes to MyPlugin, it will automatically dispatch replacePlugin(<new version of MyPlugin>)

About

Webpack loader that hot-reloads plugins made with redux-plugins-immutable when you make changes to them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published