Login Status not applied on first visit after accessToken expired
Closed this issue · 0 comments
velopert commented
When user visits after accessToken expired, the login status is not applied to fetch result of home data. To be specific, like & bookmarks are not applied on first render. When user refreshes, login status is then applied.
This happens cause loader of homepage does not wait until token gets refreshed. Every loaders that gives different result based on login status should be patched.
It is really kind of annoying that there is no definite guide for properly setting cookie for every request. I think using createEventHandler
might be a solution.. I will give a try later on.