What is the difference between Hot Reloading and Live Reloading in React Native?

前端 未结 6 872
孤城傲影
孤城傲影 2020-12-04 05:05

I\'m a bit confused here. When I\'m debugging a React Native Application, I usually enable both Hot Reloading and Live Reloading. I want to know what is th

6条回答
  •  天涯浪人
    2020-12-04 05:27

    Both can be enabled using CMD+D / CMD+CTRL+Z / Shake Gesture menu. Both are using watchman to listen to the file changes.

    Live reloading reloads the entire app.

    The idea behind hot reloading is to keep the app running and to inject new versions of the files that you edited at runtime. This way, you don't lose any of your state which is especially useful if you are tweaking the UI. So it reloads only that page which you change more info here

提交回复
热议问题