when using a custom hook that uses useRouter inside it, NextRouter becomes unavailable and I got the "NextRouter was not mounted" error
even with this hook I got the error:
// hooks/use-my-router.ts
export const useMyRouter = () => {
const router = useRouter()
return router
}
if in my component I change the useMyRouter call by useRouter, the errors goes away and I got the correct router object
versions
"storybook": "7.0.2",
"next": "13.3.0",