F: viewTransition to navigation

This commit is contained in:
Ivan 2025-02-19 19:15:26 +03:00
parent 3141b4c561
commit 60094efb3c

View File

@ -54,7 +54,7 @@ export const NavigationState = ({ children }: React.PropsWithChildren) => {
}
if (validate()) {
scrollTop();
Promise.resolve(router(path)).catch(console.log);
Promise.resolve(router(path, { viewTransition: true })).catch(console.log);
setIsBlocked(false);
}
},
@ -65,7 +65,7 @@ export const NavigationState = ({ children }: React.PropsWithChildren) => {
(path: string) => {
if (validate()) {
scrollTop();
Promise.resolve(router(path, { replace: true })).catch(console.log);
Promise.resolve(router(path, { replace: true, viewTransition: true })).catch(console.log);
setIsBlocked(false);
}
},