mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
F: viewTransition to navigation
This commit is contained in:
parent
3141b4c561
commit
60094efb3c
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user