Closed jedlimke closed 7 months ago
Nice catch! This is my mistake. I should use ‘Equals’:
I will fix it, write tests and publish release tomorrow.
Hi, @jedlimke! I fixed this issue in the 4.2.1
version. Check for the extension update in VSCode!
@JaneySprings Yep! It works. Thank you!
Hello again, @JaneySprings!
I think this may be related to https://github.com/JaneySprings/DotNet.Meteor/issues/83 but I figured I'd spin it out separately as to not cause more noise than I already probably have.
I created a blank .NET MAUI app in an empty folder via the dotnet CLI as follows:
This basic app, as generated by the template, is a "Hello, World" style app with a simple button whose label is updated with every click.
Importantly, however, I added a label within the XAML that has a
BindingContext
set to reference another element on the same page, the preceding button's text value. (e.g.<Label BindingContext="{x:Reference CounterBtn}" Text="{Binding Text}" />
)Everything still seems to work properly at this point.
However, once I add a second label that references a second button... then HotReload stops working until I comment the label out. I've attached two videos, one with one label, one with two, to demonstrate this behavior.
ONE LABEL VERSION:
MainPage.xaml.cs
:ONE LABEL VERSION:
MainPage.xaml
:TWO LABEL VERSION:
MainPage.xaml.cs
:TWO LABEL VERSION:
MainPage.xaml
:https://github.com/JaneySprings/DotNet.Meteor/assets/2490879/1196457d-75d9-4925-8c2e-13d027980ac4
https://github.com/JaneySprings/DotNet.Meteor/assets/2490879/572676d3-639b-4631-acf1-cbac64e1e187