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

Ensure out-timelines are cleared before re-setting them up in getTime… #40

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

Conversation

ronnoc5991
Copy link

…line

When using the transitionContext to nest a child’s out-timeline in a parent timeline (parentTimeline.add(transitionContext.getTimeline(child, ‘out))), the child’s out timeline is (re) setup, but does not first have its out-timeline cleared. This leads to appending the out-timeline to itself over and over again.

…line

When using the transitionContext to nest a child’s out-timeline in a parent timeline (parentTimeline.add(transitionContext.getTimeline(child, ‘out))), the child’s out timeline is (re) setup, but does not first have its out-timeline cleared.  This leads to appending the out-timeline to itself over and over again.
@ronnoc5991
Copy link
Author

I created a codesandbox to illustrate the issue I saw: https://codesandbox.io/s/please-help-me-yrt9z7?file=/src/components/multistep-process/MultistepProcess.transitions.ts

There, if you look at the console and navigate back and forth between two steps, you can see that tweens repeatedly get added to the Steps' out timelines. This can also be fixed by clearing the timelines manually in their setup functions.

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.

None yet

1 participant