Skip to content

Commit

Permalink
Update useEffect dependencies array for editor component
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Oct 30, 2019
1 parent 7b55769 commit da11aa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Editor = memo(({ licenseEnabled, initialValue, onEditorReady }: Pro
setTextArea(containerRef.current!.querySelector('textarea'));

onEditorReady(createEditorShim(editorInstanceRef.current));
}, []);
}, [initialValue, onEditorReady, licenseEnabled]);

return <div ref={containerRef} />;
});

0 comments on commit da11aa0

Please sign in to comment.