Unsure how to upgrade to latest version. What is SessionStorage these days? #315
-
I'm liking a lot of simplicity that flows out of the latest version of I'm upgrading from
It seems like in the latest version of auth that we don't need to do that, instead favoring https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage Overall, I'm just curious what's going on. Specifically, I'm having an issue where upgrading is causing some infinite loop spinning. I'm sure I can figure that out if I can understand what is going on with the changes I'm mentioning. A great place to start might be explaining this quote:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not sure why you think it recommend using browser's sessionStorage object, the quote mentions to use React Router session storage objects, the same you used before. By you deciding what to use is because there are more than just createCookieSessionStorage, eg you could use createWorkerKVSessionStorage when using CF, or a custom one with createSessionStorage. |
Beta Was this translation helpful? Give feedback.
I'm not sure why you think it recommend using browser's sessionStorage object, the quote mentions to use React Router session storage objects, the same you used before.
By you deciding what to use is because there are more than just createCookieSessionStorage, eg you could use createWorkerKVSessionStorage when using CF, or a custom one with createSessionStorage.