an async function that logouts user which then redirects to root page
When I click on logout button, the current component gets unmounted, but for a sec or two, there is no component on the screen(blank)
How should I do this so that there is no blank screen in between?
Why r u using async function in the store? And it would help if u can share the code snippet.....
zustand store logout function removed async still doesn't work
Обсуждают сегодня