⚡ (editor) Improve edges responsiveness
Also fixed a ton of useEffects should make everything a bit more reactive. Closes #307
This commit is contained in:
@ -31,14 +31,13 @@ export const GroupsCoordinatesProvider = ({
|
||||
useEffect(() => {
|
||||
setGroupsCoordinates(
|
||||
groups.reduce(
|
||||
(coords, block) => ({
|
||||
(coords, group) => ({
|
||||
...coords,
|
||||
[block.id]: block.graphCoordinates,
|
||||
[group.id]: group.graphCoordinates,
|
||||
}),
|
||||
{}
|
||||
)
|
||||
)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [groups])
|
||||
|
||||
const updateGroupCoordinates = useCallback(
|
||||
|
Reference in New Issue
Block a user