We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8538112 commit 2d1725fCopy full SHA for 2d1725f
GUIDE.md
@@ -268,7 +268,7 @@ import { createCollection, createEffect } from '@zeix/cause-effect'
268
269
const messages = createCollection((applyChanges) => {
270
const ws = new WebSocket('/messages')
271
- ws.onmessage = (e) => applyChanges({ changed: true, add: JSON.parse(e.data) })
+ ws.onmessage = (e) => applyChanges({ add: JSON.parse(e.data) })
272
return () => ws.close()
273
}, { keyConfig: msg => msg.id })
274
0 commit comments