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

[SET] Fix transition restart #4947

Merged
merged 16 commits into from
Sep 22, 2023
Merged

[SET] Fix transition restart #4947

merged 16 commits into from
Sep 22, 2023

Conversation

piaskowyk
Copy link
Member

@piaskowyk piaskowyk commented Aug 21, 2023

Summary

This PR fixes the issue with shared element transition restart. Previously, there was a chance of the app crashing or a needed component disappearing. The purpose of this PR is to prevent app crashes and ensure a proper end state for the transition.

Test plan

Run example TransitionRestart.tsx example - available in this PR

@piaskowyk piaskowyk marked this pull request as ready for review August 23, 2023 15:18
@piaskowyk piaskowyk requested review from tomekzaw and tjzel August 28, 2023 08:09
Copy link
Collaborator

@tjzel tjzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand all the changes but it seems ok. I'd like to improve code quality for some of the places that I mentioned.

tjzel

This comment was marked as duplicate.

Copy link
Member

@kacperkapusciak kacperkapusciak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't understand anything from this PR so I've QA it instead

On main the app crashes when a Shared Transition is interrupted by the user or programmatically

With this PR applied the transition snaps to the final stage without crashing

lgtm :shipit:

Copy link
Collaborator

@tjzel tjzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪨

@piaskowyk piaskowyk added this pull request to the merge queue Sep 22, 2023
Merged via the queue into main with commit 839efad Sep 22, 2023
@piaskowyk piaskowyk deleted the @piaskowyk/SET-stability-v1 branch September 22, 2023 12:30
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.

3 participants