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
We have a screen that has a very large number of TextInputs (think 100) as it's used by users to fill in a large table's worth of data (think 5-7 rows, each with 10+ fields). We were experiencing a large amount of rendering lag so I simply wrapped TextInput in React.memo and saw a large performance improvement.
This led me to this question: why isn't TextInput wrapped in React.memo in its implementation? It seems rather expensive to render with all its fancy UI.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have a screen that has a very large number of
TextInput
s (think 100) as it's used by users to fill in a large table's worth of data (think 5-7 rows, each with 10+ fields). We were experiencing a large amount of rendering lag so I simply wrappedTextInput
inReact.memo
and saw a large performance improvement.This led me to this question: why isn't
TextInput
wrapped inReact.memo
in its implementation? It seems rather expensive to render with all its fancy UI.Beta Was this translation helpful? Give feedback.
All reactions