question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Custom Control] HotReload doesn't work for newly added nested items

See original GitHub issue

Description

Continuation of https://github.com/dotnet/maui/issues/10390, but I’ve implemented IVisualTreeElement. Only now the HotReload works for items defined in XAML at launch, but doesn’t work for items added via HotReload. I’ve noticed the IReadOnlyList<IVisualTreeElement> IVisualTreeElement.GetVisualChildren() method is not called when adding new nested items, maybe I should handle collection changes somehow so it’s called, @PureWeen?

https://user-images.githubusercontent.com/21204523/199957266-18de9468-d27d-4c95-beed-68c0b97377a5.mov

Steps to Reproduce

Watch the video

Link to public reproduction project repository

https://github.com/the8thC/ElementVisuaElementHotReload

Version with bug

7.0 Release Candidate 2

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, I was not able test on other platforms

Affected platform versions

iOS 16, Android API 32

Did you find any workaround?

Remove and add the whole parent control and HotReload works for all items

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
drasticactionscommented, Nov 14, 2022

Before we close it, we should probably consider documenting this somewhere (Creating custom controls and writing IVisualTreeElement overrides), so others don’t get bit by the same thing. @Redth Is this possible to have this done? Maybe for the backlog?

0reactions
Redthcommented, Jan 27, 2023

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin Forms - Custom Control with Hot Reload
Hi to all, I want to create a custom control ( possible with content view ) that is able to work with Hot...
Read more >
my hot reload didn't work - Developer Community
I install last version of VS (2019-V16.11.3) and at first Hot Reload Work properly but I don't know why didn't work now. it's...
Read more >
XAML Hot Reload Error after upgrading VS
Using the PRISM Xamarin, I created a mobile project. Compile the project; Attempt to debug the project. The project will deploy in the...
Read more >
Nested react router component doesn't load/render on ...
I have been learning react for past few weeks. And now I'm having an issue that when I reload the page using browser...
Read more >
Hot Deploy and Live Reload | Configuration
Live reload and hot deploy together take care of automatically applying source code changes, instead of having to manually restart the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found