Files
vike-react-native-web-bug/pages/+onPageTransitionEnd.ts
2024-05-11 14:59:10 +02:00

7 lines
254 B
TypeScript

import type { OnPageTransitionEndAsync } from "vike/types";
export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
console.log("Page transition end");
document.querySelector("body")!.classList.remove("page-is-transitioning");
};