working basic live collab

This commit is contained in:
Ishaan Dey
2024-05-03 14:58:56 -07:00
parent a18bcf9c14
commit 17af48fe2c
6 changed files with 65 additions and 19 deletions

View File

@ -19,6 +19,7 @@ export function Cursors({ yProvider }: { yProvider: TypedLiveblocksProvider }) {
// On changes, update `awarenessUsers`
function setUsers() {
console.log("SET USERS")
setAwarenessUsers(
Array.from(yProvider.awareness.getStates()) as AwarenessList
)