Statemanager

reflex.istate.manager.StateManager

A class to manage many client states.

Methods

SignatureDescription
create(cls, state: type[reflex.state.BaseState])Create a new state manager.
get_state(self, token: str) -> reflex.state.BaseStateGet the state for a token.
set_state(self, token: str, state: reflex.state.BaseState)Set the state for a token.
modify_state(self, token: str) -> collections.abc.AsyncIterator[reflex.state.BaseState]Modify the state for a token while holding exclusive lock.

Built with Reflex