Next.js Discord

Discord Forum

images appearing & disappearing without error

Unanswered
ashie posted this in #help-forum
Open in Discord
hi! im trying to create a photo gallery within my site and the images appear and then disappear on reload. there isnt an error within the gallery OR in the terminal

the code for the page can be found here: https://github.com/ash-development/portfolio/blob/main/pages/gallery/index.js

4 Replies

bump ^^
bump 😭 im still strugging and have no idea where to even move on from here
Asian black bear
Try bisecting the code, by removing things until it works and then investigate from there why it breaks. In your case my first steps would be to disable the random shuffling and see whether it works, then disable all the filtering logic and finally replace the motion features with a regular image tag to see if your motion setup is causing the problems.

Additionally, you should confirm whether or not the images even appear in the DOM. This could be indicative of a bugged filtering logic or motion doing weird things.