TTC
Theo's Typesafe CultEdward
Media not rendering on first try, only after a refresh
Hey, first of all, this is my first complex Next.js project, so it is very probable that I am doing something stupid.
So the problem is that, on the homepage of my app I have a video (1) and an image (2) that render only after a refresh, they won't show the first time the website is accessed. Both of them are stored locally in the /public folder. I have attached a before and an after-refresh screenshot with the problem.
You can test this live here: https://moodvie.edwardcs.com/
Index page source code: https://github.com/edwardsavin/moodvie/blob/main/src/pages/index.tsx
Component with the video source code: https://github.com/edwardsavin/moodvie/blob/main/src/components/presentation.tsx
Component with the image source code:
https://github.com/edwardsavin/moodvie/blob/main/src/components/main-footer.tsx
I searched and tried everything that I could found on Google but with no luck at all. Once again, it is very probable that I am doing something very wrong since I am not super familiar with Next and React. Thank you so much for reading this, if you have any idea of how to fix this bug don't hesitate to write here, I will try every single thing.
Moodvie
Moodvie - Get movie recommendations based on your mood and music taste.
GitHub
moodvie/index.tsx at main · edwardsavin/moodvie
Get movie recommendations based on your mood and music taste. - moodvie/index.tsx at main · edwardsavin/moodvie
GitHub
moodvie/presentation.tsx at main · edwardsavin/moodvie
Get movie recommendations based on your mood and music taste. - moodvie/presentation.tsx at main · edwardsavin/moodvie
GitHub
moodvie/main-footer.tsx at main · edwardsavin/moodvie
Get movie recommendations based on your mood and music taste. - moodvie/main-footer.tsx at main · edwardsavin/moodvie
J
JulieCezar•313d ago
It looks like you fixed it ?
J
JulieCezar•313d ago
20KMembers
View on DiscordWant results from more Discord servers?
More Postsany good resource for browser extension development?just titleRoute Guarding with nextjsHow do you implement route guarding with nextjs? Not too sure what would be the recommended way to dthe URL must start with the protocol `mongo`I have been geting this error recently, and I have no idea why. my mongodb DATABASE_URL is without "Read and Write in Next Js Is not working in production (vercel)this code is working in local environment but not working in production can anyone tell me how to reDesperate for help with Trpc resolver.How can i get resolve({ default: base64Data }); to only trigger once trpc has returned success or fuseRouter queryHow do y'all handle typescript with nextjs's query params?
Currently I'm doing ```const cartId = qu