Session_state does not seem to be working in the cloud

Hello @RayJ and @randyzwitch
I am facing a similar issue that I have shared at This discussion
I have a multipage app that I am deploying to streamlit cloud.
In short, I have three pages in the app. Each page defines a set of session_state variables.
I am using component: streamlit-drawable-canvas in only one page of them.
In the pages that don’t use streamlit-drawable-canvas, everything seems working normally.
In the page that uses streamlit-drawable-canvas, once the code hits the part to use the component, streamlit doesn’t seem to find any of the session_state variables any more. The above link includes a snippet of the code I am using.
Needless to say, the app is working perfectly on local machine.
Any clues?
Thanks.

1 Like