robertszafa / moodportfolio

2 stars 1 forks source link

Photo not updating in node viewer #48

Open DevGareth opened 5 years ago

DevGareth commented 5 years ago

Not causing it to re-render when change index on graph. Not sure how to fix.

DevGareth commented 5 years ago

Have tried adding a photos state (to nodeviewer, rather than using props) which does seem to improve matters but still doesn't replace the first photo on clicking a different index. (Not added to git yet)

DevGareth commented 5 years ago

Have now pushed this to git. Does update the photo info but doesn't replace the image. I suspect that it does have the correct information to get the image but that it is somehow being intelligent and realising that there is already an existing component so it can just change it rather than remove and reload it. This causes photo to not re-render.

Maybe?