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(useStyleTransition): add an early return if we don't have anything to animate #226

Closed
wants to merge 1 commit into from

Conversation

ecreeth
Copy link
Contributor

@ecreeth ecreeth commented Oct 24, 2024

Currently, we use the useStyleTransition hook every time useStyleProps is being used. No matter if the styles being evaluated don't include any transition at all.

This PR tries to solve the problem by adding an early return when we don't have any transition.

@necolas
Copy link
Contributor

necolas commented Nov 11, 2024

This will need rebasing. The unit tests are likely to fail due to a regression in coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants