Questions tagged [hot-reload]

Use this tag for questions about the hot-reload functionality of programming tools.

Hot-reload is the ability to view the effects of programming changes as soon as they are made without having to manually perform additional actions such as compiling, deploying, reloading, or restarting. These steps may still happen, but they are automatically performed by an agent that watches for changes to the source code.

Using hot-reload decreases the time for a development cycle and prevents developers from wasting time when they forget to perform steps after making changes then can't figure out why their changes didn't work.

415 questions
61
votes
6 answers

Flutter Hot Reload to multiple devices

Is it possible to connect multiple devices with hot reload? Specifically, both Android and iOS emulators at the same time.
Japang LY
  • 777
  • 1
  • 8
  • 11
53
votes
5 answers

process is not defined on hot reload

I have a react app made with create react app, and hot reloading kills the page entirely with the error: Uncaught ReferenceError: process is not defined What's strange is that there seems to be an iframe injected which I never noticed before: This…
Dara Java
  • 2,410
  • 3
  • 27
  • 52
49
votes
18 answers

Unable to Hot Reload on Visual Studio 2022

I moved my web app from Visual Studio 2019 to 2022 (Preview 7) but I am unable to hot-reload even small changes like changing if(a=b) to if(a!=b) and will require stopping the debugger, and I am unsure what is the 'COMPLUS_ForceENC' environment…
bob mason
  • 677
  • 1
  • 6
  • 11
28
votes
5 answers

Flutter web does "hot restart" instead of "hot reload". Is "hot reload" supported on flutter web?

I have used flutter_web for a while now and never really questioned that it always restarted the whole application when pressing "hot reload" but since now flutter_web got merged to the main flutter channel I´m wondering if I might do something…
LP Square
  • 927
  • 1
  • 10
  • 17
27
votes
5 answers

How to automate browser refresh when developing a Flask app with Python?

I've started learning Flask to develop web applications. What I am really missing is an automatic Browser refresh after any code change (including static files, templates, etc.). This seems to be a standard feature in almost any JavaScript…
Wlad
  • 2,866
  • 3
  • 28
  • 42
20
votes
2 answers

Svelte Hot Reloading Issue

Recently started playing with Svelte using the sveltejs template. Everything is working fine, however when I do any change in the files it doesn't hot reload the changes to the web browser, so I have to manually refresh the page to see the changes.…
Ben Dev
  • 835
  • 1
  • 10
  • 10
19
votes
2 answers

webpack live hot reload for sass

I am building a workflow for a react starter and would like to have my browser auto reload when I make a change to my scss files. Currently, webpack will hot reload when I make a change in my index.js file (set as my entry point). However when I…
18
votes
5 answers

Serving Firebase Functions doesn't hot reload on Windows

Serving Firebase Functions locally with the firebase serve command is supposed to enable hot reloading but this doesn't seem to work on windows, even with watchman installed. Is there a better solution aside from running npm build after each code…
galki
  • 8,149
  • 7
  • 50
  • 62
17
votes
2 answers

Listen to changes and reload container on code change - docker-compose

I am using docker-compose in visual studio 2019 with docker for windows running linux containers. I want to enable hot reload for the angular client app. I modified the npm command running the app to include poll like: "docker-start": "ng serve…
qubits
  • 1,227
  • 3
  • 20
  • 50
13
votes
3 answers

Hot Reload not working in Visual Studio 2022 .Net 6 Razor projects

We just upgraded all but one of our web app projects from .NET Core 3.1 projects to .NET 6 in our solution. These were ASP.NET Core 3.1 projects using Razor. Here are the results we're seeing with respect to Hot Reload: The .NET 6 projects hot…
user3002092
  • 495
  • 2
  • 11
  • 29
13
votes
1 answer

How to detect hot reload inside the code of a Flutter App?

I have an asset file that need to be processed before it can be used. This asset file will be heavily edited and I would like to not to have to restart the application each time I make an edit. I'm aware of the existence of the reassemble method on…
Ameen
  • 1,747
  • 3
  • 16
  • 31
11
votes
2 answers

Hot Reload not working in Blazor Server .NET 6

My Issue I am using Visual Studio Professional 2022 version 17.2.5 and I have a Blazor Server project, targeting .NET 6, where the Hot Reload feature is giving me a headache. This feature works fine in other projects of mine, built entirely the same…
11
votes
1 answer

Dotnet CLI Hot Reload: always restart app on rude edits?

When using Hot Reload in the .NET CLI... $ dotnet watch watch : Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload. Press "Ctrl + R" to restart. watch : Building... ... watch : Started ... any rude edit leads…
Max
  • 9,220
  • 10
  • 51
  • 83
11
votes
3 answers

VS 2022 Hot Reload - web socket fails to open in aspnetcore-browser-refresh.js

Reagrdless of whether I run the application with or without the debugger attached, and whether it's run from VS or via command line (dotnet watch run) I cannot get the Hot Reload websocket to connect. The framework automatically adds the…
11
votes
4 answers

Fast refresh in react native always fully reload the app

This question has been asked several times here(here the most relevant,Another example), but no solution has been proposed in any of them. So I have 2 questions to you guys: Any idea why it wouldn't work in a large project? I mean, there are any…
Eliav Louski
  • 3,593
  • 2
  • 28
  • 52
1
2 3
27 28