mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 04:53:41 +00:00
Merge pull request #39 from medtaher123/fix/extra-rerendering
fix: remove extra rerendering when position changes
This commit is contained in:
commit
d2555d9f94
@ -273,7 +273,13 @@ const Diagrams = () => {
|
||||
zoomUpdated: debouncedZoomEvent,
|
||||
offsetUpdated: debouncedOffsetEvent,
|
||||
});
|
||||
}, [JSON.stringify(blocks)]);
|
||||
}, [
|
||||
JSON.stringify(
|
||||
blocks.map((b) => {
|
||||
return { ...b, position: undefined, updatedAt: undefined };
|
||||
}),
|
||||
),
|
||||
]);
|
||||
|
||||
const handleDeleteButton = () => {
|
||||
const selectedEntities = engine?.getModel().getSelectedEntities();
|
||||
|
Loading…
Reference in New Issue
Block a user