Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line SVG dotted animation in strict mode #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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