You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function cacheLayout it's used for performance reasons, to avoid reflow. The issue right now is that every time I call cacheLayout I need to remember to call clearLayoutCache afterwards so that any function that calls any of the cached layout functions doesn't get stale data.
Similarly to what I did with withStack the function withCachedLayout would handle cashing the layout values and clearing them afterwards so that I don't need to remember to clear them every time.
The text was updated successfully, but these errors were encountered:
david-tejada
changed the title
Replace cacheLayout(..) with withCachedLayout(..., callback)
Replace cacheLayout(...) with withCachedLayout(..., callback)Apr 26, 2023
The function
cacheLayout
it's used for performance reasons, to avoid reflow. The issue right now is that every time I callcacheLayout
I need to remember to callclearLayoutCache
afterwards so that any function that calls any of the cached layout functions doesn't get stale data.Similarly to what I did with
withStack
the functionwithCachedLayout
would handle cashing the layout values and clearing them afterwards so that I don't need to remember to clear them every time.The text was updated successfully, but these errors were encountered: