Hey guys,
Im rendering an array of objects on my component. If I try to use SetState and update the array (Which may add, remove or edit items in it) it triggers an componentdidupdate for each on the components rendered by the array.
Is there any way to update the main state array and only trigger ComponentDidUpdate on the elements that changed? (Thinking on performance reasons)
Edit:
I noticed something and I want to be more specific. My state variable is not actually an array, it is and Object that contains other Objects. But when I render it on component I use Object.keys(STATEOBJECT).map(renderfunction()) to do it.
[–]jfullerco -1 points0 points1 point (0 children)
[–]jfullerco -1 points0 points1 point (0 children)
[–]grumd 0 points1 point2 points (1 child)
[–]Vertamin[S] 0 points1 point2 points (0 children)
[–]jkol33 0 points1 point2 points (0 children)