Skip to content

Removal of component attribute isn't honored after hot reload #31582

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

Closed
danroth27 opened this issue Apr 7, 2021 · 1 comment
Closed

Removal of component attribute isn't honored after hot reload #31582

danroth27 opened this issue Apr 7, 2021 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@danroth27
Copy link
Member

danroth27 commented Apr 7, 2021

Repro steps:

  • Create a new Blazor WebAssembly app
  • Update launchSettings.json to enable hot reload: "hotReloadProfile": "blazorwasm"
  • dotnet watch
  • Update the Counter component to add an IncrementAmount parameter
  • Add a Counter to the home page: <Counter IncrementAmount="10" />
  • Remove the IncrementAmount attribute
  • Try the counter

Expected: Counter increments by 1
Actual: Hot reload succeeded, but the Counter still increments by 10.

.NET SDK: 6.0.100-preview.3.21202.5

@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Apr 7, 2021
@pranavkm
Copy link
Contributor

pranavkm commented Apr 7, 2021

Likely a dupe of #31272.

@captainsafia captainsafia added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Apr 7, 2021
@ghost ghost added the Status: Resolved label Apr 7, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

4 participants