Created
October 1, 2021 06:52
-
-
Save hmmhmmhm/3f7aa706cb807ec46ac051aa294b2d60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Router from 'next/router' | |
| import { useEffect } from 'react' | |
| export default function StaticRoute() { | |
| useEffect(() => { | |
| Router.replace(window.location.pathname, window.location.pathname, { | |
| shallow: true | |
| }) | |
| }, []) | |
| return null | |
| } |
hmmhmmhm
commented
Oct 1, 2021
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment