Skip to content

Commit

Permalink
fix: yarray is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley2058 committed Sep 9, 2024
1 parent 6194338 commit 8870158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/magic.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { nanoid } from 'nanoid'
import { SocketIOProvider } from './client.js'

const ydoc = new Y.Doc();
const yArray = ydoc.getArray('magic')
const provider = new SocketIOProvider(
window.serverUrl || 'ws://localhost:4444',
'crdt-folder',
Expand Down

0 comments on commit 8870158

Please sign in to comment.