Skip to content

Conversation

@Reflejo
Copy link

@Reflejo Reflejo commented Mar 12, 2023

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.

Fixes #151

This was broken in strict mode.
@Reflejo Reflejo changed the title Fix line animation Fix line SVG animation in strict mode Mar 17, 2023
@Reflejo Reflejo changed the title Fix line SVG animation in strict mode Fix line SVG dotted animation in strict mode Mar 17, 2023
@Reflejo Reflejo force-pushed the fz/fix-animated-line branch from 1409cdd to bb45e6d Compare June 30, 2023 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dash animation broken in React 18 strict mode

1 participant