tldraw/apps/www/utils
Vincent Driessen 0acfd563fe
Upgrade Liveblocks to 0.17 (#738)
* Upgrade Liveblocks packages to 0.17

* Convert app to recommended Liveblocks 0.17 setup

* Convert multiplayer example to recommended Liveblocks 0.17 setup

* Convert multiplayer-with-images example to recommended Liveblocks 0.17 setup

* Fix React rendering issue for multiplayer app

This bug could manifest after _navigating_ internally to the Multiplayer
example app. Liveblocks Storage would seem to remain empty, but Presence
would still seem to work. In other words, you'd see cursors flying, but
no document contents.

This did not happen when doing a full page load.

This bug only occurs in React strict mode.

* update onPatch and onCommand

* "Add event callbacks for `onSessionStart` and `onSessionEnd`"

* Adds edit state

* Pass callbacks to app

* Remove console logs

* interpolate cursor only when not in session

* Update multiplayer icon

* Fix a few things

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-25 15:38:43 +01:00
..
export.ts [improvement] local copy and export for images (#669) 2022-05-11 14:25:08 +01:00
github.ts [improvement] Multiplayer + cursors (#457) 2021-12-22 00:14:38 +00:00
gtag.ts [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00
liveblocks.ts Upgrade Liveblocks to 0.17 (#738) 2022-06-25 15:38:43 +01:00
sentry.ts [feature] Add grids (#344) 2021-11-26 15:14:10 +00:00
useGtag.ts [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00