QuestionWeb AppWeb app. runs in the browser
how do I persist habits so they dont vanish on refresh?
everything is in useState and disappears when I reload. do I need a real database or is localStorage fine for now?
2 answers
everything is in useState and disappears when I reload. do I need a real database or is localStorage fine for now?
quick win: try the env var first. if that is not it, it is probably the redirect URL.
the trick most tutorials skip: do it server-side. worked for me instantly.