Skip to content

Drift is supposed to persist for web, right? (Database clears when app stops and runs) #3136

Answered by simolus3
wanglophile asked this question in Q&A
Discussion options

You must be logged in to vote

Drift is supposed to persist data on the web, yes. And since it works when refreshing the page, I assume it is.

However, if I stop (Shift + F5) then run (F5) again, the data will be gone and any data I input will start over from scratch with a primary key of 1.

It's possible that Flutter sets up a new Chrome profile when you do that (which would delete all data from the previous session), is other data (like shared preferences / window.localStorage) also gone?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wanglophile
Comment options

Answer selected by wanglophile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants