Skip to content
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

Deprecation warning st.experimental_singleton #18

Closed
senickel opened this issue Feb 23, 2023 · 0 comments · Fixed by senickel/st_pages#1
Closed

Deprecation warning st.experimental_singleton #18

senickel opened this issue Feb 23, 2023 · 0 comments · Fixed by senickel/st_pages#1

Comments

@senickel
Copy link

I am getting the following warning when starting my streamlit app.

st.experimental_singleton is deprecated. Please use the new command st.cache_resource instead, which has the same behavior. More information [in our docs](https://docs.streamlit.io/library/advanced-features/caching).

I think it stems from this line.

I would guess the decorator should be replaced with st.cache_resource according to the link in the warning.

Thanks for creating this library. It gives a much more pythonic feel when developing multipage streamlit apps 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant