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: free viewmodel and prevent caching of page on back #2098

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

nickrandolph
Copy link
Contributor

GitHub Issue (If applicable): fixes: #2097

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

When navigating back both page instance and attached viewmodel are cached, and are used when navigating back to the same page

What is the new behavior?

Page and viewmodel are disposed, so the next back operation will cause new instance of page and viewmodel to be created

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@dansiegel dansiegel disabled auto-merge December 7, 2023 13:46
@nickrandolph nickrandolph merged commit eee74a7 into main Dec 7, 2023
15 of 16 checks passed
@nickrandolph nickrandolph deleted the dev/nr/fixingbacknav branch December 7, 2023 14:17
@nickrandolph
Copy link
Contributor Author

@Mergifyio backport release/stable/3.0

Copy link

mergify bot commented Dec 7, 2023

backport release/stable/3.0

✅ Backports have been created

nickrandolph added a commit that referenced this pull request Dec 8, 2023
….0/pr-2098

fix: free viewmodel and prevent caching of page on back (backport #2098)
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.

[Navigation] Wrong ViewModel attached to page when NavigationCacheMode set to Required
2 participants