Cadenza JS
    Preparing search index...

    Type Alias CadenzaUserStateChangeEvent

    CadenzaUserStateChangeEvent: CadenzaEvent<
        "userState:change",
        { change: (keyof UserState)[]; userState: UserState },
    >

    When the user changes the user state in Cadenza.

    This event is not dispatched for changes made programmatically, for example, with setUserState or setLayerVisibility. Use the state returned by those methods to get the updated user state instead.

    The event detail contains:

    • userState: The complete current user state.
    • change: The keys of the user state that changed.