gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

Refactor GridItem flexBasisValue calculation logic

Open LuisRodriguezLD opened this issue 7 months ago • 0 comments

The current logic that determines the flexBasis uses state but this was causing issues for me a lot of other users, this PR leverages useMemo to cache the flexBasis

useEffect runs after mount & memo is computed before mounting

Closes #2794 #2782

Before After
Screenshot 2025-05-01 at 7 43 00 AM Screenshot 2025-05-01 at 7 43 39 AM

LuisRodriguezLD avatar May 01 '25 12:05 LuisRodriguezLD