Skip to content

@sqlrooms/project-builder / createProjectBuilderStore

Function: createProjectBuilderStore()

createProjectBuilderStore<PC, AppState>(stateCreator): object

Create a project store with custom fields and methods

Type Parameters

Type Parameter
PC
AppState extends ProjectState<PC>

Parameters

ParameterType
stateCreatorStateCreator<AppState>

Returns

object

The project store and a hook for accessing the project store

NameType
projectStoreStoreApi<AppState>
useProjectStore<T>(selector) => T