FrameworkReducer Function

Framework reducer that combines the ConfigurableUiReducer and SessionStateReducer.

FrameworkReducer(state: CombinedReducerState<{ configurableUiState: (state: ConfigurableUiState = initialState, action: ConfigurableUiActionsUnion) => ConfigurableUiState, sessionState: (state: SessionState = initialState, action: SessionStateActionsUnion) => DeepReadonly<SessionState> }>, action: DeepReadonlyObject<ActionWithPayload<SetSnapMode, number>> | DeepReadonlyObject<ActionWithPayload<SetTheme, string>> | DeepReadonlyObject<ActionWithPayload<SetToolPrompt, string>> | DeepReadonlyObject<ActionWithPayload<SetWidgetOpacity, number>> | DeepReadonlyObject<ActionWithPayload<SetDragInteraction, boolean>> | DeepReadonlyObject<ActionWithPayload<SetFrameworkVersion, string>> | DeepReadonlyObject<ActionWithPayload<SetUserInfo, DeepReadonlyObject<UserInfo>>> | DeepReadonlyObject<ActionWithPayload<SetActiveIModelId, string>> | DeepReadonlyObject<ActionWithPayload<SetAvailableSelectionScopes, DeepReadonlyArray<PresentationSelectionScope>>> | DeepReadonlyObject<ActionWithPayload<SetDefaultIModelViewportControlId, string>> | DeepReadonlyObject<ActionWithPayload<SetDefaultViewId, string>> | DeepReadonlyObject<ActionWithPayload<SetDefaultViewState, any>> | DeepReadonlyObject<ActionWithPayload<SetNumItemsSelected, number>> | DeepReadonlyObject<ActionWithPayload<SetIModelConnection, any>> | DeepReadonlyObject<ActionWithPayload<SetSelectionScope, string>> | DeepReadonlyObject<ActionWithPayload<UpdateCursorMenu, DeepReadonlyObject<CursorMenuData>>>): CombinedReducerState<{ configurableUiState: (state: ConfigurableUiState = initialState, action: ConfigurableUiActionsUnion) => ConfigurableUiState, sessionState: (state: SessionState = initialState, action: SessionStateActionsUnion) => DeepReadonly<SessionState> }>

Parameter Type Description
state CombinedReducerState<{ configurableUiState: (state: ConfigurableUiState = initialState, action: ConfigurableUiActionsUnion) => ConfigurableUiState, sessionState: (state: SessionState = initialState, action: SessionStateActionsUnion) => DeepReadonly<SessionState> }>  
action DeepReadonlyObject<ActionWithPayload<SetSnapMode, number>> | DeepReadonlyObject<ActionWithPayload<SetTheme, string>> | DeepReadonlyObject<ActionWithPayload<SetToolPrompt, string>> | DeepReadonlyObject<ActionWithPayload<SetWidgetOpacity, number>> | DeepReadonlyObject<ActionWithPayload<SetDragInteraction, boolean>> | DeepReadonlyObject<ActionWithPayload<SetFrameworkVersion, string>> | DeepReadonlyObject<ActionWithPayload<SetUserInfo, DeepReadonlyObject<UserInfo>>> | DeepReadonlyObject<ActionWithPayload<SetActiveIModelId, string>> | DeepReadonlyObject<ActionWithPayload<SetAvailableSelectionScopes, DeepReadonlyArray<PresentationSelectionScope>>> | DeepReadonlyObject<ActionWithPayload<SetDefaultIModelViewportControlId, string>> | DeepReadonlyObject<ActionWithPayload<SetDefaultViewId, string>> | DeepReadonlyObject<ActionWithPayload<SetDefaultViewState, any>> | DeepReadonlyObject<ActionWithPayload<SetNumItemsSelected, number>> | DeepReadonlyObject<ActionWithPayload<SetIModelConnection, any>> | DeepReadonlyObject<ActionWithPayload<SetSelectionScope, string>> | DeepReadonlyObject<ActionWithPayload<UpdateCursorMenu, DeepReadonlyObject<CursorMenuData>>>  

Returns - CombinedReducerState<{ configurableUiState: (state: ConfigurableUiState = initialState, action: ConfigurableUiActionsUnion) => ConfigurableUiState, sessionState: (state: SessionState = initialState, action: SessionStateActionsUnion) => DeepReadonly<SessionState> }>

Defined in

Last Updated: 11 June, 2024