@sqlrooms/room-store / createRoomStoreCreator
Function: createRoomStoreCreator()
createRoomStoreCreator<
RS>(): <TFactory>(stateCreatorFactory) =>object
Factory to create a room store creator with custom params.
Type Parameters
| Type Parameter | Description |
|---|---|
RS extends BaseRoomStoreState | Room state type |
Returns
Function
An object with createRoomStore(params) and useRoomStore(selector)
Type Parameters
| Type Parameter |
|---|
TFactory extends (...args) => StateCreator<RS> |
Parameters
| Parameter | Type |
|---|---|
stateCreatorFactory | TFactory |
Returns
object
| Name | Type |
|---|---|
createRoomStore | (...args) => StoreApi<RS> |
useRoomStore | <T>(selector) => T |
