Disable cached function warning

Hi I have been receiving this cached function warning that comes and disappears in a second. I believe the warning appears for the reason that I have st.component_instance inside one of the components.

I am not sure why this appears and goes away. I have not enabled caching on the component.
I believe I know what I am doing and I would just like to disable this warning. Is there a way to do that?

Also, I guess I can avoid this error by using the st.cache decorator. But I don’t want to cache the function.

Hi there,

Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here – please edit your post to include a code snippet and link to your GitHub repo so we can try to reproduce the issue

Hi @Caroline,

This is not an issue with Streamlit. As I mentioned, I am aware of why Streamlit is throwing this warning. I want to know if there is a way to bypass this warning by mentioning something in config or something.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.