Replies: 2 comments 2 replies
|
Accessing the store is just returning existing references already in memory. So no, I don't think Redux is related to this at all. |
1 reply
|
I don’t think this is a Redux or Normalizr issue directly it’s more about where and how the data is being accessed. Calling That’s likely why commenting out |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions