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.
Currently, we use the
useStyleTransition
hook every timeuseStyleProps
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.