Skip to content

@sqlrooms/notebook / useStoreWithNotebook

Function: useStoreWithNotebook()

useStoreWithNotebook<T>(selector): T

Select from the room store while asserting that the notebook slice is loaded.

Type Parameters

Type Parameter
T

Parameters

ParameterType
selector(state) => T

Returns

T