-
Notifications
You must be signed in to change notification settings - Fork 38
Fix hot reloading storybook #8
Comments
PR #10 partially fixes this issue. To fix the third part, clear existing stories for the updated module and load them again. |
I updated the README related to HMR. |
Hey @arunoda, is there any update with this? |
Hey @frederickfogerty HMR is working pretty well and functional (without any additional config) We still can't to one thing. That's to remove stories if we delete them or renamed them. |
@philcockfield Is HMR working for you now? It wasn't working for us today when I was on Skype with you - has it behaved better since? |
@frederickfogerty just tried it again now. Seems to be working, now that everything else has settled down. |
@frederickfogerty Just to check. Have you enabled HMR using RN's config menu (CMD + R) |
Yes, I've enabled HMR - I'll try using it again and report back here if I have any issues. |
Hey guys, HMR is not working for me (only tested with Android). When I save a file, it does shows "hot loading..." on the device screen. However it doesn't actually update. |
@thedgbrt Hot reloading has been working fine for us for a long time now. Is there anything different about your setup? Have you tried restarting all the separate components (packager, storybook, android)? |
@frederickfogerty I'm on windows, using GenyMotion simulator. I have just tried it after restarting my computer.
Update : it does update if I go to the storybook UI and go back and forth between components |
@thedgbrt That all seems fine to me, might be something to with Windows/your environment, I'm not sure to be honest |
@frederickfogerty thanks! will report back if I manage to make it work ;) |
I've found that hot reloading mostly doesn't work with Functional components at all in React Native. I see the "hot reloading" banner at the top but then nothing happens. Class-based (ES6) components seems to hot reload ok (e.g. So I wonder whether this is a general issue with HMR, React Native and Functional components and not with |
That's it! I was indeed using stateless functional components. Opened an issue in the react native repo. I think we can close this one. |
Hi @thedgbrt, |
@mnmtanish my bad |
For stateless component, it seems we must provide class based higher (wrapper) component.
|
It sounds like part 3 is currently impossible? Shell we close this issue, it actually sounds like it's resolved 👍 |
Hot module reloading needs to be configured.
TODO
The text was updated successfully, but these errors were encountered: