Skip to content

Commit

Permalink
fix(examples/react): rm dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Dec 19, 2023
1 parent 57413d7 commit 8e3394b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/react/with-extension-manager/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Editor() {
const [isReadOnly, setReadOnly] = useState(false)
useViewEffect((view) => {
setReadOnly(view.state.readOnly)
}, [])
})
const toggleReadOnly = () => {
const view = getView()
if (view) {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/with-update-listener/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Editor() {
setLetterCount(update.state.doc.length)
}
})
}, [])
})
const containerRef = useContainerRef()
return (
<>
Expand Down

0 comments on commit 8e3394b

Please sign in to comment.