From 1a3f22557ce8c5b81bbf86ef4e9dda2ad610b289 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 17 May 2023 11:00:18 +0200 Subject: [PATCH 1/2] refactor(useUpdateNodeInternals): only call updateNodeDimensions once --- .../UseUpdateNodeInternals/CustomNode.tsx | 2 +- .../core/src/hooks/useUpdateNodeInternals.ts | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/vite-app/src/examples/UseUpdateNodeInternals/CustomNode.tsx b/examples/vite-app/src/examples/UseUpdateNodeInternals/CustomNode.tsx index 1b25bdc1..a11c68d0 100644 --- a/examples/vite-app/src/examples/UseUpdateNodeInternals/CustomNode.tsx +++ b/examples/vite-app/src/examples/UseUpdateNodeInternals/CustomNode.tsx @@ -23,7 +23,7 @@ const CustomNode: FC = ({ id }) => {