v0.18.4
All packages now provide an isReadOnly flag on user instances. It is available
when getting self or others. isReadOnly is true when storage is read-only, see
the
room management guide
for more information.
In @liveblocks/client:
-
Add a new option
shouldInitiallyConnecttoclient.enterthat let you control whether or not the room connects to Liveblocks servers. Default istrue.Usually set to false when the client is used from the server to not call the authentication endpoint or connect via WebSocket.
In @liveblocks/react:
-
Add a new property
shouldInitiallyConnecttoRoomProviderthat let you control whether or not the room connects to Liveblocks servers. Default istrue.By default equals to
typeof window !== "undefined", meaning the RoomProvider tries to connect to Liveblocks servers only on the client side. -
Internal package restructurings to increase code sharing. You may notice a new dependency show up in your dependency tree:
@liveblocks/core. It contains private APIs that aren't intended for direct consumption.