Images source not updating in gatsby build using localstorage #31715
Unanswered
shameer-rahman
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to show different set of images for the users who visit the website for the first time using localstorage, everything works as expected in gatsby develop but when I build the site using gatsby build for production use it always returns images which meant to show only for the first time users. here is the full code
The code always returns images meant for first-time users even though the localstorage is set properly. i'e
the issue occurs only in production build and works fine in development build
Beta Was this translation helpful? Give feedback.
All reactions