@sqlrooms/room-store / createRoomStore
Function: createRoomStore()
createRoomStore<
RS>(stateCreator):object
Create a room store with custom fields and methods
Type Parameters
| Type Parameter |
|---|
RS extends BaseRoomStoreState |
Parameters
| Parameter | Type |
|---|---|
stateCreator | StateCreator<RS> |
Returns
object
The room store and a hook for accessing the room store
| Name | Type |
|---|---|
roomStore | StoreApi<BaseRoomStoreState & RS> |
useRoomStore | <T>(selector) => T |
