mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +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
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[...deps, forceUpdate, options]
|
deps
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -205,8 +205,6 @@ const useTiptap = (
|
|||||||
injectCSS: false
|
injectCSS: false
|
||||||
}),
|
}),
|
||||||
[
|
[
|
||||||
doubleSpacedLines,
|
|
||||||
isMobile,
|
|
||||||
onDownloadAttachment,
|
onDownloadAttachment,
|
||||||
onOpenAttachmentPicker,
|
onOpenAttachmentPicker,
|
||||||
PortalProviderAPI,
|
PortalProviderAPI,
|
||||||
|
|||||||
Reference in New Issue
Block a user