You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@punchagan Im thinking of adding a userFetchedOnce flag also in store and toggle it when the first request to get user succeeds. And only when userFetchedOnce is true and user is not logged in we can navigate them back to Login screen.
What do you think? You have any better ideas?
Another way is totally moving this to use sokid-query and fetching user through that remove user from global store. That will give us fetching, error and data directly
Joe2k
changed the title
Refreshing Page takes the user back to login page and then back to the current page for Logged in users
Refreshing any Page takes the user back to login page and then back to the current page for Logged in users
Sep 2, 2023
Extracted duplicated code to fetch user data and initialize flowbite into a
reusable component + a Route wrapper that simplifies and makes it easier to
understand how and where user data is being fetched. This could be a
preparatory commit to switch to solid-query to fetch the user data, along with
the work in 994f1cd.
See #84
Screen.Recording.2023-09-02.at.10.49.04.AM.mov
The text was updated successfully, but these errors were encountered: