What is the difference between hot restart and hot reload?

Hot restart

“Hot restart” means that the application doesn’t need to restart completely, but only needs to reinitialize part of its state. For example, you can easily implement it in Flutter by defining the State object as a singleton class; then if you need to update part of its state, simply call State’s “update()” method with the changed data and save the modified state (for example using an InheritedWidget). This can make development faster and reduce memory usage at the same time. Please note that this is not the same as redux; it’s an implementation detail of Flutter.

Hot reload

he main difference between hot restart and hot reloading is that with “hot restart”, only part of the state is updated, while with “hot reloading” you can update all of it (for example by using a StatefulWidget to recreate the whole screen). However, for development purposes both approaches are equally useful. You can implement them in Dart easily because Dart supports hot reloading out-of-the-box! And if your project uses Polymer 2 already, you don’t need to do anything special because Polymer provides hot reloading via polymer serve .

Leave a Comment