https://github.com/threepointone/disto-hot-loader
hot load disto/flux stores
https://github.com/threepointone/disto-hot-loader
Last synced: 2 months ago
JSON representation
hot load disto/flux stores
- Host: GitHub
- URL: https://github.com/threepointone/disto-hot-loader
- Owner: threepointone
- Created: 2015-05-30T23:59:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-02T12:51:08.000Z (almost 10 years ago)
- Last Synced: 2025-01-25T08:11:40.098Z (4 months ago)
- Language: JavaScript
- Size: 203 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
disto-hot-loader
---(beta)
hot load your [disto](https://github.com/threepointone/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
- needs tests (how does one test a hot-loader?)