joschan21 / digitalhippo

A Modern Fullstack E-Commerce Marketplace for Digital Products
3.3k stars 625 forks source link

"My Account" drop-down menu not showing after Sign-In #5

Closed mvdgn closed 11 months ago

mvdgn commented 11 months ago

I have to manually refresh the page after sign-in to see the "My Account" drop-down menu in the navigation bar even if I am redirected to the homepage. In the video, after sign-in, the “My account” drop-down menu appears immediately when redirected to the homepage.

Can you tell me what could be causing this problem? I have tried everything. This is certainly a small detail.

THANKS.

JackDuckar commented 11 months ago

Got the same issue. I made some replacement in (auth)/sign-in/page.tsx (so you refresh router after redirecting on '/') Remove router.refresh() after toast.succes(....) and put it after router.push('/') in the end of onSucess function

mvdgn commented 11 months ago

Awesome ! Thank you very much Jack. I appreciate your help. Cheers