img

Question Regarding Redux state update

I was working with a redux to implement a feed like instagram and storing the data in redux.. but problem occurs if I just increase the number of items in feed, let say 10k, then perform different actions like like the post or upvote the post, taking time to show in UI... so what I did was make a local state (useSate()) for each post item for the like, and unlike then, I am updating the store and server for optimistic ui update.. but creating a separate local state and also maintaining a redix state, is it a good practice? Can I know a good solution in terms of large-scale applications like facebook instagram and what they do?

img

LinearHold42

Amazon

7 months ago

img

GhostCoder

Student

7 months ago

Sign in to a Grapevine account for the full experience.

Discover More

Curated from across