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
7
votes
1 answer

Hot reload QML when using ApplicationWindow

Has anyone been able to hot reload all QML files when using a ApplicationWindow? I found a few examples like https://qml.guide/live-reloading-hot-reloading-qml/ and https://www.slideshare.net/ICSinc/how-best-to-realize-a-runtime-reload-of-qml, but…
marsl
  • 959
  • 1
  • 14
  • 25
7
votes
2 answers

Difference between Android's Instant Run vs Flutter's Hot Reload and React Native's Hot Reload?

Currently, I was working on React Native Project, and when I shake the Phone after Running Project it gives me live Updates. as I've also worked with Flutter it also provides me the Same kind of OutPut. but, In Android there is a Functionality…
Jay Mungara
  • 6,663
  • 2
  • 27
  • 49
6
votes
3 answers

Razor Runtime Compilation breaks Hot Reload and therefore debugging in ASP.NET

Nomenclature This question is about three related subjects that allow the developer to introduce code changes in a running application without having to rebuild and restart said application: Edit and Continue: Visual Studio's functionality to…
CodeCaster
  • 147,647
  • 23
  • 218
  • 272
6
votes
2 answers

Hot-reload (HMR) with 'bun dev'

I'm trying the new bun platform (v0.1.6) with Hono. The steps I've followed: bun create hono test-api cd test-api bun dev Then the server shows this message: $ bun dev [1.00ms] bun!! v0.1.6 Link: http://localhost:3000 When I modify any file,…
Roberto
  • 8,586
  • 3
  • 42
  • 53
6
votes
1 answer

How to have hot reload when using "webpack serve" on Webpack 5

I just upgraded to Webpack 5, and because webpack-dev-server wasn't working anymore, I changed my npm start command from webpack-dev-server to webpack serve. This is my npm start command webpack serve --config ./build-config/webpack.config.js I…
Sam
  • 1,765
  • 11
  • 82
  • 176
6
votes
1 answer

Flutter: being sent back to initial page after hot reload

I am using flutter_modular to separate my app into some module, everything looks fine until I notice that each time I perform a hot reload, my application automatically jump back to login page which is also the initial one. This is my setting: class…
Lê Quang Bảo
  • 2,670
  • 2
  • 27
  • 40
6
votes
1 answer

How to configure Hot Reloading in Vue/Webpack to work on any test domain

I create a backend project in a scripting language and a frontend using Vue-CLI. The project is tested in the domain example.localhost. In the test environment I run the Vue-CLI development version (localhost:8080) and use it on the project page…
Gander
  • 1,854
  • 1
  • 23
  • 30
6
votes
1 answer

Enable component specific hot reloading?

I created a react app using the following: create-react-app my-app --scripts-version=react-scripts-ts From following this example: https://github.com/wmonk/create-react-app-typescript I tried adding: if (module.hot) { module.hot.accept(); } To…
meds
  • 21,699
  • 37
  • 163
  • 314
5
votes
1 answer

Hot reload not working for Razor page VS2022

I just installed Visual studio2022 and create a project.NET6 web application with Razor page. But I found that Hot re-load doesn't work even for little changes("TEST" to "TEST1" in screenshot) on Index.cshtml but error popup said "Edits were made…
dbenbyeon
  • 145
  • 2
  • 6
5
votes
2 answers

Unable to use Hot Reload while debugging Blazor WASM (Aspnet hosted)

If I create a new Blazor WASM app, out of the box I can use Hot Reload by running dotnet watch run in a terminal window. This will launch a browser window, and any changes I make will update in the browser automatically. However, if I start my app…
Dave
  • 3,676
  • 4
  • 28
  • 39
5
votes
0 answers

Unable to run blazor assembly project with hot reload feature enabled (.net 6 preview 5)

After installation net6 preview 3 and setting up the project to use net6 I have changed the launchSettings.json and added "hotReloadProfile": "blazorwasm" configuration. When I run dotnet watch projects starts but I an unable to open the…
marcinn
  • 1,879
  • 2
  • 22
  • 46
5
votes
1 answer

Hot reload for Flutter integration test?

I have setted up Flutter Integration Testing on my project as defined here: https://flutter.dev/docs/testing/integration-tests I used the following devDepencendies: integration_test: ^1.0.0 flutter_test: sdk: flutter flutter_driver: sdk:…
5
votes
3 answers

React Component not reload in browser after save the changes in localhost

I created a new react project using Create-React-App. In the old projects, Whenever I did the changes in the component and save the component it will reflect in the browser, but in the new project when I saved the changes in the code the browser did…
Raghul SK
  • 1,256
  • 5
  • 22
  • 30
5
votes
1 answer

Element type is invalid: expected a string (...) but got: object

App.js import React from 'react'; import ReactDOM from 'react-dom'; class Car extends React.Component { render() { return

Hi, I am a Car!

; } } export default Car; index.js import React from 'react'; import ReactDOM from…
ryder802
  • 51
  • 3
5
votes
1 answer

Why does changing componentDidMount to non-arrow function make hot reloading work again?

For one screen in my React Native app, hot reloading wasn't working. I found that the solution was to change this componentDidMount = () => { <...do stuff with this.props...> } to this componentDidMount() { <...do stuff with…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
1 2
3
27 28