-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add local_storage #233
base: main
Are you sure you want to change the base?
Add local_storage #233
Conversation
✅ Deploy Preview for phenomenal-crepe-0effec ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I've tried this to test in an application for my own testing, and I think it would be useful for your reference before this is merged:
How to test:You can either log-in directly with the above deployment (or clone and deploy yourself). Note The Google OAuth Consent screen has to be opened in a new tab. This is related to Streamlit Issue #7123: Link redirect. Read more about how I did it in Chapter 2 of the repo above.
IssuesISSUE 1The processing goes into an infinite loop even if the data has been set in local storage.
ISSUE 2When logging out, it says 'Bad message format : Bad 'setIn' index # (should be between [0, 1])
I'm assuming both issues are occurring due to the local storage. I've implemented it at st_local_storage.py. |
Add a
local_storage
extra for easier interaction with browser localStorageIt's still a bit buggy at times, I get periodic "app resets" (the session_state still exists but widget values get reset) which I can't explain. Like everything gets unmounted. May have to do with the way st_js updates very quickly and some race condition.