mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
editor: fix recursive updates causing hang
This commit is contained in:
@@ -59,7 +59,7 @@ export const useEditor = (
|
||||
};
|
||||
},
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[...deps, forceUpdate, options]
|
||||
deps
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -205,8 +205,6 @@ const useTiptap = (
|
||||
injectCSS: false
|
||||
}),
|
||||
[
|
||||
doubleSpacedLines,
|
||||
isMobile,
|
||||
onDownloadAttachment,
|
||||
onOpenAttachmentPicker,
|
||||
PortalProviderAPI,
|
||||
|
||||
Reference in New Issue
Block a user