-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Recommended use of new cache features in regards to CookieManager #40
Comments
I am getting below warning if just used the code snippet from readme switching warning from streamlit
the error traceback after warning
|
Neither cache_data nor cache_resources have a flag that allows output mutation, so I am confused as well. |
+1 Currently Streamlit shows a deprecation warning but neither |
+1 it is unusable in streamlit 1.18+ |
+1 need a way to use st.cached_data |
New package version uses |
+1 |
I still have the same issue with the following snippet: import extra_streamlit_components as stx
import streamlit as st
@st.cache_resource
def get_manager():
return stx.CookieManager()
cookie_manager = get_manager() and following versions: $ pip list | grep streamlit
extra-streamlit-components 0.1.60
streamlit 1.29.0 |
same issue streamlit 1.31.1 |
+1 |
Same issue My temporary workaround:
|
extra-streamlit-components 0.1.71 Get this warning when running with @thiamfook fix. I have newer streamlit version than him.
How should one use the cookie manager? |
what is recommended change for 1.18+ of streamlit for below code snippet (given st.cache is now deprecated)?
The text was updated successfully, but these errors were encountered: