Skip to content

What are the specific use cases for tauri-plugin-persisted-scope? #8540

Answered by FabianLars
percy507 asked this question in Q&A
Discussion options

You must be logged in to vote

It saves scope configs added via these apis https://docs.rs/tauri/latest/tauri/scope/struct.FsScope.html, the built-in dialog, and file drops (if tauri's file drop is enabled) to disk so they are preserved across app restarts.

Example: Imagine you're working on a code editor, your user clicks on "Open Project" and selects their project in the file picker dialog. Tauri will then extend the fs scope with the selected path automatically so you can immediatly use the fs javascript apis.
Now without the plugin, users would have to click on "Open Project" again after restarting the app. With the plugin you could add a session restore feature (== the last used project is opened automatically) wi…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@percy507
Comment options

@haexhub
Comment options

@FabianLars
Comment options

@haexhub
Comment options

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