disto-hot-loader

1.0.18 • Public • Published

disto-hot-loader

(beta)

hot load your disto stores and actions

npm install disto-hot-loader --save-dev

and add disto-hot to your webpack config's loaders.

like so - loaders: ['react-hot', 'disto-hot', 'babel-loader']

bugs

  • instead of import {Dis, act} from 'disto', need to do let {Dis, act} = require('disto')
  • don't name any of your own functions register or act (or rename them before making the call)
  • adding/removing/swapping stores might need a reload.
  • source maps are a bit wonky

Readme

Keywords

Package Sidebar

Install

npm i disto-hot-loader

Weekly Downloads

1

Version

1.0.18

License

ISC

Last publish

Collaborators

  • threepointone