Handling data persistence in Tauri + PowerSync #12536
Unanswered
basicserge
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a Tauri desktop application using PowerSync web SDK with an optional sync feature. Users can use the app locally and optionally enable cross-device sync later.
Technical setup:
Issue:
The IndexedDB data gets reset on each new Tauri app build on MacOS and Android (haven't tested other OS). While launching previous builds, the old IndexedDB storage is still available for that specific build version.
This is particularly problematic for users who haven't enabled sync yet, as their local-only data is lost.
Question:
Is there a recommended approach to persist IndexedDB data across app updates with Tauri? Solutions that work for both desktop and mobile builds would be ideal.
Related: PowerSync Web SDK Documentation
Beta Was this translation helpful? Give feedback.
All reactions