feat(ui): fast page transitions with View Transitions
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Cross-fades page changes in 160ms on compositor, skips transitions for search query updates, and removes the item-detail fade that would make the new snapshot start blank.
This commit is contained in:
1 parent
0d2edcab3d
commit
610a7e4dbf
3 files changed
+50
-3
No files matched your search
+5
-1
@@ -44,7 +44,11 @@ const router = createRouter({
|
||||
},
|
||||
defaultPreload: false,
|
||||
defaultPreloadStaleTime: 0,
|
||||
defaultViewTransition: false,
|
||||
// Only animate real page changes; search-param updates (typing in the
|
||||
// search field) must not trigger a transition on every keystroke.
|
||||
defaultViewTransition: {
|
||||
types: ({ pathChanged }) => (pathChanged ? ["page"] : false),
|
||||
},
|
||||
scrollRestoration: true,
|
||||
scrollRestorationBehavior: "auto",
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user