Anyone done any work or have any ideas on hot reloadable actions?
They should work out of the box.
(With Webpack Hot Module Replacement, updates to stateless modules "bubble up" until some module handles them. In case of action creators, updates will bubble to components, which are handled by react-transform-hmr.)
@gaearon Can you point us to any starter kit, where actions are hot reloadable? I tried some without success.
Examples folder in this project should work.
Oh, I see now. This got broken after the switch from React Hot Loader to React Transform (#690). The reason for this is that babel-plugin-react-transform has no idea examples/counter/containers/App.js is a component, and doesn't enable hot reloading for it. Same goes for other examples.
Since this is an issue unrelated to Redux, please track it in https://github.com/gaearon/babel-plugin-react-transform/issues/26. You can also keep using React Hot Loader until it is fixed. With React Hot Loader, action creators should get reloaded just fine.
You might be interested in https://github.com/reactjs/redux/pull/1455.
This is fixed in React Hot Loader 3.
It is built with lessons learned from both React Hot Loader and React Transform.
It鈥檚 still in alpha but I encourage you to check it out!
Awesome work Dan, you are the man :-)
Most helpful comment
This is fixed in React Hot Loader 3.
It is built with lessons learned from both React Hot Loader and React Transform.
It鈥檚 still in alpha but I encourage you to check it out!