Hot reload doesn't hot-reload

前端 未结 1 1982
后悔当初
后悔当初 2021-01-23 12:28

I activated hot reloading and it\'s not hot-reloading. When I make a change to any Javascript file, the Packager re-runs and the simulator puts a gray bar at the top saying \"H

相关标签:
1条回答
  • 2021-01-23 13:21

    The hot reloading according to the developers is still in development phase and is quite buggy. You could always do a full re-run of the app but the hot reload works like a charm sometimes and not at all otherwise.

    https://facebook.github.io/react-native/blog/2016/03/24/introducing-hot-reloading.html

    Word of warning: because JavaScript is a very stateful language, hot reloading cannot be perfectly implemented. In practice, we found out that the current setup is working well for a large amount of usual use cases and a full reload is always available in case something gets messed up.

    0 讨论(0)
提交回复
热议问题