You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the RideTheComet app generated with the Comet template the label disappears after clicking the button.
Before clicking the button:
After clicking the button:
(also seems a problem with the rendering after resizing the window, see issue: #267)
I'm using version 0.3.464-beta with Visual Studio 17.3.0 Preview 4.0
Way to reproduce:
dotnet new --install Clancey.Comet.Templates.Multiplatform::0.4.344-beta
dotnet new comet -n RideTheComet
Run project in Visual Studio
Click button
Workaround:
Somehow it works to change the line: new Button("Ride the Comet! ☄️", ()=>{
to: new Button("Ride the Comet! ☄️" + comet.CometTrain, ()=>{
Somehow this forces the update and shows the label again.
As it also fixes the rendering problem, I get the impression that the label is somehow hidden through rendering problems as mentioned in #267
The text was updated successfully, but these errors were encountered:
I found that putting comet.Rides += 0; at the top of the body() function fixed it.
I believe all required state must be used in the function in order for it to render properly. Interestingly, the Live XAML view seemed to reflect the changes despite them not being rendered. I believe this is due to the OnPropertyRead system in StateManager not detecting reads in code present inside of the lambda. This obviously does not seem like it's intentional behavior since it's the exact same behavior defined in the examples.
Edit: Hmm. It seems that certain reloads (ones that call ResetView) seem to cause the bug. Adding the line: State.AddGlobalProperty((page.comet, "")); to my setup code seemed to solve this issue too. I don't know enough about Comet's internals to really diagnose this, but it looks like an issue where ResetView causes some things to get lost in transit (possibly a flawed Diff function???)
When running the RideTheComet app generated with the Comet template the label disappears after clicking the button.
Before clicking the button:
After clicking the button:
(also seems a problem with the rendering after resizing the window, see issue: #267)
I'm using version 0.3.464-beta with Visual Studio 17.3.0 Preview 4.0
Way to reproduce:
Workaround:
Somehow it works to change the line:
new Button("Ride the Comet! ☄️", ()=>{
to:
new Button("Ride the Comet! ☄️" + comet.CometTrain, ()=>{
Somehow this forces the update and shows the label again.
As it also fixes the rendering problem, I get the impression that the label is somehow hidden through rendering problems as mentioned in #267
The text was updated successfully, but these errors were encountered: