azchohfi / LottieUWP

UWP port of Lottie(https://github.com/airbnb/lottie-android)
Apache License 2.0
274 stars 45 forks source link

Lottie animation disappears when set navigation cache mode enabled after navigate back #31

Closed hupo376787 closed 3 years ago

hupo376787 commented 6 years ago

Hi, I'm not sure its a bug, or do I need to set something to fix it right.

In my case, I have a MainPage, and another BlankPage. In MainPage, I have a lottie animation. When I navigate to BlankPage from MainPage, and then navigate back, lottie disappears.

See my git: https://github.com/hupo376787/LottieBugOrNot

gif gif

azchohfi commented 6 years ago

I confirmed this as a bug. The internal composition is set to null when the component is unloaded (navigated away), so when you navigate back it will not draw anything. Thanks for the repo, btw.

hupo376787 commented 6 years ago

If NavigationCache.Mode=Disabled, everything is ok

azchohfi commented 6 years ago

Yes. This is definitely a bug.

Strypper commented 5 years ago

Yes I have this bug too