Closed kondo0602 closed 11 months ago
In the documentation, useRouter is imported from next/router, but if you are using App Router, you need to import from next/navigation. https://nextjs.org/docs/app/api-reference/functions/use-router#migrating-from-nextrouter
The refresh method is not exported from next/router.
In the documentation, useRouter is imported from next/router, but if you are using App Router, you need to import from next/navigation. https://nextjs.org/docs/app/api-reference/functions/use-router#migrating-from-nextrouter
The refresh method is not exported from next/router.