[Navigation] Wrong ViewModel attached to page when NavigationCacheMode set to Required #2097
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
Current behavior
App has three pages, Page1, Page2 and Page3. Routing has Page2 as dependsOn for Page3. All pages have NavigationCacheMode set to Required
Nav sequence:
Page1, Page2, Page3, (back) Page2, (back) Page1, Page 3 (this will inject Page2 into backstack), (back) Page2
Page2 has the old viewmodel and is not refreshed to a new instance
Expected behavior
Page2 should have a new viewmodel instance
How to reproduce it (as minimally and precisely as possible)
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: