Closed ashit-rath closed 2 years ago
The getCanvasChildren memoization is not working correctly anymore i.e the equality function always returns false. Right now the only way this works is if we do deep equality on all params.
getCanvasChildren
Works
memoizeOne(fn, deepEqual)
Doesn't work with individual deep equals
memoizeOne(fn, (prev: any, next: any) => { // not comparing canvasChildren becuase template acts as a proxy return ( deepEqual(prev[0], next[0]) && deepEqual(prev[1], next[1]) && deepEqual(prev[2], next[2]) && deepEqual(prev[3] === next[3]) && deepEqual(prev[4] === next[4]) && deepEqual(prev[5] === next[6]) && deepEqual(prev[6] === next[6]) ); })
@ashit-rath what should be the next steps here? I don't see this assigned to anyone
Picked up after solving the major Derived Property issues with the list widget
Is there an existing issue for this?
SubTasks
The
getCanvasChildren
memoization is not working correctly anymore i.e the equality function always returns false. Right now the only way this works is if we do deep equality on all params.Works
Doesn't work with individual deep equals