fix(react/fitView): only trigger for resize observer

This commit is contained in:
moklick
2024-08-14 16:33:08 +02:00
parent 1c3e779ed2
commit 93af3409c4
3 changed files with 22 additions and 17 deletions
@@ -25,6 +25,6 @@ export function useUpdateNodeInternals(): UpdateNodeInternals {
}
});
requestAnimationFrame(() => updateNodeInternals(updates));
requestAnimationFrame(() => updateNodeInternals(updates, { triggerFitView: false }));
}, []);
}