Closed cmarabate closed 4 years ago
Nevermind, I apparently just had to shut down the site and build it up again using "gatsby develop".
@cmarabate Glad you got it figured out! Let me know if you have any other questions!
I do have a question actually, does Userbase allow me to create a website that would let each visitor pin/star items and/or move stuff around and have it only saved locally for each visitor?
If not, do you know of a Gatsby Starter that does or what it is that I need to search for to learn how to create a site like that? There has to be a name for that type of site that I am not aware of.
Here are a couple examples of sites I have found that work like this...
Thanks!
@cmarabate What you are describing sounds like saving anonymous user data in session/local storage. I am not quite sure of your use case, but if you have a page that is open to anonymous users, you should be able to allow the anonymous user to interact with your site and just save the data in their local storage (probably local, not session, depending on how long you want that data to persist). Then, if the user attempts to sign up or log in, after either action you could programmatically save what you have stored in their local or session storage to their actual account. I would not recommend saving ANY data in session or local storage that is sensitive (hence the point of Userbase).
I doubt there is any kind of solution other than what I've described.
Session Storage: https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage Local Storage: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
That is a huge help, thank you so much! Now that I know what exactly I am looking for, I should be able to figure it out!
Thanks again!
hello, I'm getting the same error after I upload the site to netlify. Any idea why?
I followed the instructions in your read me making sure to add my userbase App ID in the .env file. The home page is working but when I try to view the login page, I get the following error...