Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reuse liveupdate #716

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

TimLariviere
Copy link
Member

@TimLariviere TimLariviere commented Apr 23, 2020

Noticed just now, that when using LiveUpdate, controls weren't reused as expected.
It's because we set the Fabulous.XamarinForms' canReuseView handler too late (only when calling XamarinFormsProgram.run).

But LiveUpdate does not re-execute that part, it ends up with the default Fabulous canReuseView handler... returning false always...

So, I had to provide specific XamarinFormsProgram.mkSimple/mkProgram to set this canReuseView early so LiveUpdate has access to it.

@TimLariviere TimLariviere merged commit a3ed07b into fabulous-dev:v0.53 Apr 23, 2020
@TimLariviere TimLariviere deleted the fix-reuse-liveupdate branch April 23, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant