-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow override of storage #129
Comments
Hey @firatoezcan could you please elaborate more on the issue with a code example perhaps? Thanks. |
I see. We do plan on allowing storage override (like we do for the web SDK), the timeline is unknown though. We welcome PRs. Also for extra context, getting session information via our SDK functions will always be async cause our SDK also takes case of refreshing the session tokens if needed which requires a network call. |
I'm also interested on this. |
Hey, I am implementing Supertokens right now for both native and web and I found that it is way harder than it should be because RN doesnt really has a good concept of loaders and in general it almost feels like useEffect is necessary to correctly get the correct states.
I did get a really good solution now that also uses useSyncExternalStore, however the snapshot function there cannot be async (and what I found online was buggy at best). This would be less of an issue if I could inject the storage function however as I already wrote a function that has sync updates and stores asynchronously in the background.
Is this something that would be feasible to implement?
The text was updated successfully, but these errors were encountered: