Great video! I'm having an issue with atomWithStorage, though. I saved some data to local storage with this, and I tried using this in a protected route component with the condition that if that data is available in local storage, the user can access that route, otherwise they are redirected to the root route. The problem is that when I use useAtom to retrieve that data in the protected route component, it doesn't get it fast enough and the user is redirected to the root route anyway, even though that data is actually present in local storage. This only happens if I try to type the route directly in my browser, though. If I access the route through a link, it works fine. Any ideas on what might be wrong?
Nice video! Very easy to follow
I like this guy
Good content. Need some editing but well done👏. Why should I use jotai instead of React Query for example?
Good video, quality could have been better
Great video! I'm having an issue with atomWithStorage, though. I saved some data to local storage with this, and I tried using this in a protected route component with the condition that if that data is available in local storage, the user can access that route, otherwise they are redirected to the root route. The problem is that when I use useAtom to retrieve that data in the protected route component, it doesn't get it fast enough and the user is redirected to the root route anyway, even though that data is actually present in local storage. This only happens if I try to type the route directly in my browser, though. If I access the route through a link, it works fine. Any ideas on what might be wrong?
keyboard drums not good la