Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload? #693

Open
LeoIannacone opened this issue Oct 22, 2016 · 3 comments
Open

Hot reload? #693

LeoIannacone opened this issue Oct 22, 2016 · 3 comments

Comments

@LeoIannacone
Copy link

Hi, according with docs:
http://alt.js.org/docs/hot-reload/

I should use this makeHot utils which actually does not exists.

I tried without nothing, but all the stores lose the their states. How can avoid this and be sure that the stores will maintain their states while react reloads?

@diessica
Copy link

Actually it does exist, but it's available as a separate repo. See alt-utils.

I'm sending a PR in order to update this on docs. See #694.

@LeoIannacone
Copy link
Author

Looks like does not work as expected. I'm using now makeHot, but the stores got a reset on rebuilding.

Should I import them before the wrap ?

@LeoIannacone
Copy link
Author

I'm actually works, but not when I call store.getState() in a render function (in that case the store state is empty)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants