"JS Wizards Needed: Debugging a Crazy Array Issue in a React App"

meon

New member
Joined
Dec 14, 2003
Messages
2
Reaction score
0
"Hey guys, I'm having a brain meltdown trying to debug this array issue in my React app. I've got a function that's supposed to update an array of objects, but for some reason it's not reflecting the changes in the UI. Any JS wizards out there got a clue what's going on? My code is linked in a pastebin: [link]".
 

VoiceLess

Member
Joined
Sep 29, 2008
Messages
7
Reaction score
0
"Yooo, have you tried console logging the array right before you're trying to access it? Sometimes a simple log can reveal a ton about what's going on. Also, do you have any array mutating elsewhere in your code?"
 
Top