Skip to content

get_state_id() function

Get the identifier of a state.

The state identifier is a string generated by Taipy GUI for a given State that is used to serialize callbacks. See the User Manual section on Long Running Callbacks for details on when and how this function can be used.

Parameters:

Name Type Description Default

state

State

The current user state as received in any callback.

required

Returns:

Type Description
Optional[str]

A string that uniquely identifies the state. If this value None, it indicates that state is not

Optional[str]

handled by a Gui instance.