Refactor: Unify history traversal with other nav types (#87128)
This merges the logic inside updateCacheNodeOnPopstateRestoration into the function used for all other navigation types. The main difference between history traversal navigations and other navigation types is our treatment of dynamic data. History traversal operations are allowed to reuse dynamic data regardless of its freshness or staleness. So I've updated the `shouldRefreshDynamicData` argument to be an enum that accounts for our various freshness policies. As of now, there are three: Default, HistoryTraversal, and RefreshAll. This is part of an ongoing series of refactors to unify all navigation types into a single flow, both to simplify the implementation, and to ensure the behavior is consistent.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment