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

Improve useRestyle performance #131

Merged
merged 1 commit into from
Feb 24, 2022
Merged

Commits on Feb 23, 2022

  1. Improve performance of useRestyle

    1. Instead of running composeRestyleFunctions on every render cycle, we
    can do it only once when creating the restyle component.
    
    2. Build the stylesheet based only on restyle props and not all the props received by the restyled component
    
    3. Build map used to filter between restyle props and ordinary props only once, and not on every render cycle
    
    4. Do not apply all restyle transformations to obtain the stylesheet, only apply the transformations that are needed based on the props that are present on the restyled component
    sbalay committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    cdf1520 View commit details
    Browse the repository at this point in the history