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
Consider a scenario where the username is stored in a cookie and rendered on the page if it's present. Currently, the username is not shown after a single flight mutation.
Hmm.. yeah the fix isn't quite right. The idea here is that revalidate is an explicit array or it is true to turn on the mode. What your code does is makes it always true unless those conditions aren't met at which point it revalidates nothing.
I think I might see the issue. I think it is because we clone the event and put a new Request on it reflecting the newly navigated route. This request is missing all the headers so that might be the issue since you are trying to read the cookies in the cache function. I don't know that I want to put all headers across but cookies seem reasonable here. Let's give this fix a try.
Duplicates
Latest version
Current behavior 😯
Consider a scenario where the username is stored in a cookie and rendered on the page if it's present. Currently, the username is not shown after a single flight mutation.
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
chrome_ZJXI09Lbyy.mp4
Context 🔦
Note that this commit fixes the issue, but I'm not nearly confident enough in it to PR it. It also doubles up the cookies for some reason. Guidance/feedback welcome 😊
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: