router.push not working
Unanswered
English Lop posted this in #help-forum
English LopOP
In a root layout.tsx, I used a client component that used a custom hook, and a custom hook that used useRouter. Do I have to use window.location.href ?
https://github.com/ygqygq2/wenjuan-client/blob/master/src/app/hooks/useNavPage.ts
https://github.com/ygqygq2/wenjuan-client/blob/master/src/app/hooks/useNavPage.ts
2 Replies
European sprat
where is it being used?
English LopOP
UserInfo component use a custom hook, the custom hook use router.push , Layout.tsx import UserInfo component.