Redux: Hot Reload Actions

Created on 23 Sep 2015  路  8Comments  路  Source: reduxjs/redux

Anyone done any work or have any ideas on hot reloadable actions?

https://github.com/este/este/issues/482

question

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!

All 8 comments

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 :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wmertens picture wmertens  路  55Comments

erikras picture erikras  路  63Comments

5h1rU picture 5h1rU  路  115Comments

timdorr picture timdorr  路  56Comments

nickknw picture nickknw  路  71Comments