Skip to content

Commit 9701fb5

Browse files
committed
docs: update useEffect
1 parent 621c49e commit 9701fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/content/collaboration/getting-started/install.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default () => {
146146
token: 'notoken', // Your JWT token
147147
document: doc,
148148
})
149-
})
149+
}, [])
150150

151151
return <EditorContent editor={editor} />
152152
}
@@ -209,7 +209,7 @@ export default () => {
209209
}
210210
},
211211
})
212-
})
212+
}, [])
213213

214214
return <EditorContent editor={editor} />
215215
}

0 commit comments

Comments
 (0)