fix(react/fitView): only trigger for resize observer
This commit is contained in:
@@ -25,6 +25,6 @@ export function useUpdateNodeInternals(): UpdateNodeInternals {
|
||||
}
|
||||
});
|
||||
|
||||
requestAnimationFrame(() => updateNodeInternals(updates));
|
||||
requestAnimationFrame(() => updateNodeInternals(updates, { triggerFitView: false }));
|
||||
}, []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user