You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, component state is lost upon websocket reconnect. This forces a re-render from the base state.
Proposed Changes
Configure some method to save off the current state of the component
Implementation Details
Implement as an opt-in feature. Might be implemented as an alternative to use_state (for example, use_persistent_state) or as a decorator @idom.persistent_component.
Storing the state
Use dill to pickle whatever is currently within state upon each set_state mutation.
Current Situation
Currently, component state is lost upon websocket reconnect. This forces a re-render from the base state.
Proposed Changes
Configure some method to save off the current
state
of the componentImplementation Details
Implement as an opt-in feature. Might be implemented as an alternative to
use_state
(for example,use_persistent_state
) or as a decorator@idom.persistent_component
.Storing the state
dill
to pickle whatever is currently withinstate
upon eachset_state
mutation.Communicating the state back to the server
state
Avoid state spoofing
The text was updated successfully, but these errors were encountered: