Open Reflejo opened 1 year ago
This was broken in strict mode. I honestly am not sure how this worked before since lineDrawAnimRef (https://github.com/Eliav2/react-xarrows/blob/master/src/Xarrow/Xarrow.tsx#L175) will always be undefined (if no drawing animation happens), therefore handleDrawAmimEnd is never called.
lineDrawAnimRef
undefined
handleDrawAmimEnd
Fixes https://github.com/Eliav2/react-xarrows/issues/151
This was broken in strict mode. I honestly am not sure how this worked before since
lineDrawAnimRef
(https://github.com/Eliav2/react-xarrows/blob/master/src/Xarrow/Xarrow.tsx#L175) will always beundefined
(if no drawing animation happens), thereforehandleDrawAmimEnd
is never called.Fixes https://github.com/Eliav2/react-xarrows/issues/151