Skip to content

Problem with view model instance preservation when navigating back using navigator extension #2034

Answered by nickrandolph
LITTOMA asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LITTOMA I think you need to set NavigationCacheMode on PageA to required. What's happening is the page is getting recreated (instead of a cached version being used), so you get a new instance of the viewmodel.
Let me know if this fixes your issue

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LITTOMA
Comment options

Answer selected by LITTOMA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants