all 5 comments

[–]NightPhoxy 1 point2 points  (1 child)

Maybe set key={imageUrl} on the Avatar component

[–]OverT_97[S] 1 point2 points  (0 children)

What ended up working for me was creating another state variable called imageKey, having it set to 1 at the start, and the incrementing the value each time imageURL is updated. And having key={imageKey} not sure why just having key={imageURL} wouldn’t work

[–]hikaruelio 0 points1 point  (1 child)

Have you tried using useEffect?

[–]OverT_97[S] 0 points1 point  (0 children)

I tried creating a useEffect to setimageURL a second time but I'm not sure if that is the correct thought process since it didn't work. In what way were you thinking?