adrianhajdin / project_shareme_social_media

Image Sharing Social Media App
https://share-me-sanity.netlify.app/
1.73k stars 425 forks source link

App flashes and disappears after login #8

Open timo-tech19 opened 2 years ago

timo-tech19 commented 2 years ago

After I signed in, the app goes to the home page but then the content disappears after a few seconds. On checking the dom tree in the dev tools, the root div is emptied after the app loads.

Vidhu007 commented 2 years ago

Yes, I am facing the same issue! White screen appears after successfully logging

thatmissedsemicolon commented 2 years ago

its because your length is undefined. adding a {save?.length} will fix your issue. Hope it helps!

nasyx-rakeeb commented 2 years ago

where to add it

thatmissedsemicolon commented 2 years ago

it

Check your console what exact error are you getting.

nasyx-rakeeb commented 2 years ago

I am getting 2 errors i took a Screenshot of console check it out and 1 more thing, its not happening on local environment its the same app which u have published this problem is happening on your production version

Screenshot_20220529-084153_VNC Viewer

thatmissedsemicolon commented 2 years ago

What exactly your question is? Did you try to attempt yourself and it's not published by me.

nasyx-rakeeb commented 2 years ago

what i am trying to say is i haven't cloned this repo this problem is happening on main project i mean on this url: https://share-me-sanity.netlify.app/ this url is the original production version of this project

nasyx-rakeeb commented 2 years ago

try to open this url and see the problem

thatmissedsemicolon commented 2 years ago

The error is stated in the image you uploaded and you should be able to see it on the console it's says property null that means something in the code is undefined that's why you are not able to see it. Specially, something in the image URL is undefined when importing from Sanity's client. I would recommend give yourself a try not every-time it will work since a lot of changes happens over time. If you try to code yourself and figure out through console you should be able to successfully deploy this project for yourself and see everything working without errors. Hope this helps!

nasyx-rakeeb commented 2 years ago

Thanks i will try

amsalimsema commented 1 year ago

@nasyx-rakeeb Did you get passed that error? Thanks

nasyx-rakeeb commented 1 year ago

@amsalimsema no, nothing seems to work