Skip to content

Commit 9145a15

Browse files
Update: at note about browser refresh behaviour (#728)
* Update: at note on browser refresh behavior Add note in the caveat section about state resetting when browser refreshed. * Tweak wording --------- Co-authored-by: Debbie Matthews <[email protected]>
1 parent 1451913 commit 9145a15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/develop/api-reference/caching-and-state/session_state.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ When `runner.enforceSerializableSessionState` is set to `true`, Session State im
183183

184184
### Caveats and limitations
185185

186+
- Streamlit Session State is tied to a WebSocket connection. When a user reloads the browser tab or navigates using a Markdown link, the WebSocket connection and the associated Session State data are reset.
186187
- Only the `st.form_submit_button` has a callback in forms. Other widgets inside a form are not allowed to have callbacks.
187188
- `on_change` and `on_click` events are only supported on input type widgets.
188189
- Modifying the value of a widget via the Session state API, after instantiating it, is not allowed and will raise a `StreamlitAPIException`. For example:

0 commit comments

Comments
 (0)