eslint: enable react-hooks checks

Also fix all errors, which can lead to subtile bugs.

Mostly fixings deps and refactoring to make typescript happy.
This commit is contained in:
David Lechner
2022-12-17 13:56:01 -06:00
committed by David Lechner
parent ee466ac904
commit 9d71bb4734
15 changed files with 321 additions and 269 deletions
+2 -1
View File
@@ -343,7 +343,8 @@ function useEditor(
}
return callback(maybeEditor);
}, [maybeEditor, ...deps]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [maybeEditor, callback, ...deps]);
}
/**