This fixes the data integrity when snapToGrid option is not passed. If we do not explicitly store only x and y values, browser passes some extra information such as deltaX, deltaY and node. Where node inserts a full property list of an element that is being interacted with. This creates a huge performance problem whether it is kept in internal state or external.
In my case I pass chart to a redux state, and this creates circular references, and it crashes the redux devtools.
This fixes the data integrity when
snapToGrid
option is not passed. If we do not explicitly store onlyx
andy
values, browser passes some extra information such asdeltaX
,deltaY
andnode
. Wherenode
inserts a full property list of an element that is being interacted with. This creates a huge performance problem whether it is kept in internal state or external.In my case I pass
chart
to a redux state, and this creates circular references, and it crashes the redux devtools.This is also mentioned in #58.