Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySerfaty committed Feb 5, 2024
1 parent cb95f6f commit a4348fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/RichText/useNativeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const useNativeEditor = (options?: {
editorStateSubsRef.current.forEach((sub) => sub(editorState));
};

const _subscribeToEditorStateUpdate: Subscription<EditorNativeState> = (cb) => {
const _subscribeToEditorStateUpdate: Subscription<EditorNativeState> = (
cb
) => {
editorStateSubsRef.current.push(cb);
return () => {
editorStateSubsRef.current = editorStateSubsRef.current.filter(
Expand Down
2 changes: 1 addition & 1 deletion src/webEditorUtils/useTenTap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const useTenTap = (options?: useTenTapArgs) => {
window.removeEventListener('message', handleWebviewMessage);
document.removeEventListener('message', handleWebviewMessage);
};
}, [editor]);
}, [editor, bridges]);

return editor;
};

0 comments on commit a4348fd

Please sign in to comment.