More fine grained settings for hot reloading
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
I am working on an MVC app with some peculiar requirements regarding page reloads and resubmitting forms. I do like developing with `dotnet watch run` for the hot reloading, but sometimes the restrictions my app enforces clashes with automatic reloads caused by the hot reload browser integration.
### Describe the solution you'd like
I would like to selectively disable certain auto-reload scenarios in the browser script, preferably without also having to restart the entire application.
1. Option to not reload the current page if (and only if) is the result of a POST request.
2. Option to not automatically refresh the current page (but to still reload assets, scripts and css)
### Additional context
The POST response reload is particularly frustrating sometimes, as my browser of choice also asks me to confirm the reload, causing further development friction.
Also note that this is not about disabling the integration entirely (https://github.com/dotnet/aspnetcore/issues/54107), though having that option would also help.
Contributor guide
Assessment
This issue has not been assessed yet.