API Reference - @liveblocks/zustand
Middleware that lets you connect a Zustand state to Liveblocks Presence and Storage features.
See different authentication methods at @liveblocks-client#createClient.
Mapping used to synchronize a part of your zustand state with one Liveblocks Room presence.
Mapping used to synchronize a part of your zustand state with one Liveblocks Room storage.
Liveblocks extra state attached by the middleware.
Enters a room and starts sync it with zustand state.
roomId
: The id of the room.initialState
: The initial state of the room storage.
Leaves a room and stops sync it with zustand state.
roomId
: The id of the room.
The room currently synced to your zustand state.
Other users in the room. Empty when no room is currently synced.
Whether or not the room storage is currently loading.
Connection state of the room.
The value can be : authenticating
, connecting
, open
, failed
, closed
or unavailable
.