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