Closed Jonas-Degn closed 3 years ago
(Sorry about the board, it was indeed my private project and I didn't expect the automatic comment here)
Anyway, I tried following your steps with the default Blazor application and I get the correct calculation after switching between the pages. I'm not sure if missing something here.
C#, .NET 5.0, Blazor Server, running more or less a standard blazor template in server mode, not WASM.
ServerVersion 1.7.2.0 Nuget 1.6.52
I have a very simple class like this:
Then I change
TemperatureF
to320 + (int)(TemperatureC / 0.5556);
expecting new logic to run for that getter method. I have also tried manually defining it as a getter with the oldschool{ get { return 320 + (int)(TemperatureC / 0.5556); } }
, same issue.Livesharp server log goes:
I refresh the browser page and result goes from
32+calculation
to320
for all TemperatureF, which indicates that the entire+calculation
somehow disappeared in the hot-reload. Doing a manual stop, compile, start, fixes the issue, but kinda not the point of using LiveSharp.I asked about it on Discord, you called it a bug and asked me to create an issue on it, here it is :)