Skip to content

@sqlrooms/documents / createBlockDocumentFeatureSlices

Function: createBlockDocumentFeatureSlices()

createBlockDocumentFeatureSlices<TRoomState>(props?): StateCreator<BlockDocumentFeatureSlicesState>

Creates the store slices needed by block document surfaces with settings.

This composes block document content state with the shared block/panel settings selection state used by BlockSettingsPanelLayout.

Type Parameters

Type ParameterDefault type
TRoomState extends BaseRoomStoreState & BlockDocumentsSliceState & BlockSettingsSliceStateBaseRoomStoreState & BlockDocumentsSliceState & BlockSettingsSliceState

Parameters

ParameterType
propsCreateBlockDocumentsSliceProps<TRoomState>

Returns

StateCreator<BlockDocumentFeatureSlicesState>