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
I'm experiencing high memory usage in my React Native app when rendering a large list using FlashList. The issue seems to arise due to how I'm accessing normalized data (normalized using Normalizr) inside the renderItem function. Specifically, I'm retrieving each item from the Redux store using store.getState() for every render.
I have tried accessing the data using both useSelector and direct store access (store.getState()), but both approaches lead to high memory consumption and performance issues.
Steps to Reproduce:
Normalize data using Normalizr and store it in Redux.
Access each item in renderItem via direct store access.
Render a large list using FlashList.
Expected Behavior:
Efficient memory usage when accessing normalized data.
Smooth rendering of a large list without excessive memory consumption.
Observed Behavior:
High memory usage when accessing normalized data within renderItem.
Performance degradation, potentially due to frequent store access.
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
-
I'm experiencing high memory usage in my React Native app when rendering a large list using FlashList. The issue seems to arise due to how I'm accessing normalized data (normalized using Normalizr) inside the renderItem function. Specifically, I'm retrieving each item from the Redux store using store.getState() for every render.
I have tried accessing the data using both useSelector and direct store access (store.getState()), but both approaches lead to high memory consumption and performance issues.
Steps to Reproduce:
Expected Behavior:
Observed Behavior:
Questions:
Environment:
Would appreciate any insights or recommendations on resolving this issue!
Beta Was this translation helpful? Give feedback.
All reactions