xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Hot Reload #11899

Open jaysonragasa opened 4 years ago

jaysonragasa commented 4 years ago

https://github.com/jaysonragasa/XamarinBugs/blob/SignalR_v_3x/temp08242020-205506.gif?raw=true

Description

Look at how many times my converter was called.

I am starting to implement the UI in a new page and I had to necessarily add some converters which will be used in a custom header with a Label for title and a Logo shown if necessary.

I noticed a bug when adding a breakpoint in my converter. The more I save, the more the break point hits. I added a Debug.WriteLine and look (From the screenshot above) how many times the converter was called.

Steps to Reproduce

Start a new page, probably just create converter class and implement it

Expected Behavior

The converter should be hit just twice everytime I hit save.

Actual Behavior

I saved 9x, and the breakpoint in converter hit 18x

Basic Information

Screenshots

https://github.com/jaysonragasa/XamarinBugs/blob/SignalR_v_3x/temp08242020-205506.gif?raw=true

I honestly do not know if this is Xamarin, Hot Reload, or Visual Studio bug

VS bug #1179132

jsuarezruiz commented 4 years ago

@jaysonragasa Could you share the Visual Studio version, etc?

jaysonragasa commented 4 years ago

@jaysonragasa Could you share the Visual Studio version, etc?

Hey sorry, I forgot to update that one. Here it is

IDE: Visual Studio 2019 Pro Version 16.8.0 Preview 1 and Visual Studio 2019 Pro Version 16.7.2

jaysonragasa commented 4 years ago

Thanks for looking up to this. I am developing a chat product app and I have 23 different templates to show in a CollectionView. I am refreshing every time I make a template and make changes. I am noticing and experiencing a very slow response in the emulator as I progress and the only way to make it responsive again is when I stop and run the app again.

I have 4 converters currently.