Callbacks on custom components don't seem to be working in latest streamlit update

I left a reply on this issue:

the internal package structure has changed due to a refactoring; if you change the import in the streamlit_callback.py to from streamlit.components.v1 import custom_component as _components, it should work again. If you are not the author of sac, this might be something to bring to them.

That being written, this is not an official API we are going to guarantee from Streamlit-side :wink: However, we will look into this more closely and try to come up with a clean API for the future so that this patch is not needed anymore. In the meantime, I hope this^ unblocks you (for now).

2 Likes