Flint DartFlint Dart

⚡ Hot Reload in Flint Dart

Hot reload allows you to see the effects of your code changes instantly without restarting your server. This dramatically speeds up development and debugging.

What is Hot Reload?

Hot reload updates your running Flint Dart application with your latest code changes, preserving the current state and minimizing downtime. Instead of restarting your app for every code change, you get immediate feedback.

How to Use Hot Reload in Flint Dart

Flint Dart comes with built-in hot reload support. To enable hot reload, start your server with the--hot-reload flag:

flint run --hot-reload

Now, when you make changes to your Dart files, Flint Dart will automatically reload the updated code without restarting the entire server.

Benefits of Hot Reload

  • Faster development cycle by eliminating server restarts
  • Preserves application state during reloads
  • Easier debugging and iteration
  • Improves developer productivity and experience

Limitations

While hot reload covers most code changes, some structural changes (like changes to `pubspec.yaml`, dependency upgrades, or significant server config changes) may still require a full restart.