From dd2f0d9a3c7869920232f29db0cb3401cf2af28a Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Fri, 5 Apr 2024 19:01:37 +0300 Subject: [PATCH] name function to help with profiling --- frontend/components/CellInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/CellInput.js b/frontend/components/CellInput.js index ad5d2aadc1..3bdff6358d 100644 --- a/frontend/components/CellInput.js +++ b/frontend/components/CellInput.js @@ -421,7 +421,7 @@ export const CellInput = ({ }, [on_change]) ) - useLayoutEffect(() => { + useLayoutEffect(function cellinput_setup_codemirror() { if (dom_node_ref.current == null) return const keyMapSubmit = (/** @type {EditorView} */ cm) => {