Browse Source

[Beta] Remount Page Content (#4981)

main
dan 2 years ago
committed by GitHub
parent
commit
1d8f8eb465
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      beta/src/pages/_app.tsx

6
beta/src/pages/_app.tsx

@ -66,7 +66,11 @@ export default function MyApp({Component, pageProps}: AppProps) {
);
}
return <Page routeTree={routeTree}>{content}</Page>;
return (
<Page routeTree={routeTree}>
<React.Fragment key={router.pathname}>{content}</React.Fragment>
</Page>
);
}
function MaxWidth({children}: {children: any}) {

Loading…
Cancel
Save