Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload doesn't refresh the page in a Blazor Web App #49144

Closed
danroth27 opened this issue Jul 2, 2023 · 3 comments
Closed

Hot reload doesn't refresh the page in a Blazor Web App #49144

danroth27 opened this issue Jul 2, 2023 · 3 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-hot-reload This issue is related to the Hot Reload feaature help candidate Indicates that the issues may be a good fit for community to help with. Requires work from eng. team
Milestone

Comments

@danroth27
Copy link
Member

Repro steps:

  • Create a new Blazor Web App with .NET 8 Preview 6
  • Run the app (with or without debugging, doesn't matter)
  • Make a change to Index.razor and apply the change to the running app

Expected result: Change applies successfully and the UI updates with the change.
Actual result: Change applies successfully, but the UI doesn't update. You have to manually refresh the page.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Jul 2, 2023
@mkArtakMSFT mkArtakMSFT added the bug This issue describes a behavior which is not expected - a bug. label Jul 3, 2023
@mkArtakMSFT mkArtakMSFT added this to the 8.0-rc1 milestone Jul 3, 2023
@mkArtakMSFT mkArtakMSFT added the feature-hot-reload This issue is related to the Hot Reload feaature label Jul 3, 2023
@danroth27
Copy link
Member Author

It looks like the change does apply, but server-side rendered pages don't refresh automatically. Interactive pages, like the counter page, seem to update fine.

@mkArtakMSFT mkArtakMSFT added the help candidate Indicates that the issues may be a good fit for community to help with. Requires work from eng. team label Jul 14, 2023
@captainsafia
Copy link
Member

This is the same as #47026.

I'll track progress in that issue but use this one to validate once the change is in. 🙇🏽

@captainsafia
Copy link
Member

Re-opening this since we still need to consume the API on the SDK end.

@captainsafia captainsafia reopened this Aug 24, 2023
mkArtakMSFT pushed a commit to dotnet/sdk that referenced this issue Sep 18, 2023
Depends on dotnet/aspnetcore#50437.

Addresses dotnet/aspnetcore#49144.

| Scenario | Validated |
|---|---|
| Statically server rendered page | ✅  |
| Interactive server rendered page |  ✅ |
| Page with stream rendering enabled |  ✅  |
| Interactive client rendered page |  ❌ (dotnet/aspnetcore#50765)  |
| Statically server rendered page with interactive components (all render modes) |  ✅  |
@ghost ghost locked as resolved and limited conversation to collaborators Oct 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-hot-reload This issue is related to the Hot Reload feaature help candidate Indicates that the issues may be a good fit for community to help with. Requires work from eng. team
Projects
None yet
Development

No branches or pull requests

4 participants