Storing application data #5557
-
Where should you store application data like language preferences, or other data? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Yes. We also have this: https://tauri.app/v1/api/js/path/#appdir (also available in rust) to get the path to an app specific directory in the config dir. This is our general recommendation to store stuff, but the next tauri release will have similar convenience functions for the other base dirs, for example appDataDir for non-config data |
Beta Was this translation helpful? Give feedback.
-
Thank you @sjcovell ... that was incredibly helpful. |
Beta Was this translation helpful? Give feedback.
Yes. We also have this: https://tauri.app/v1/api/js/path/#appdir (also available in rust) to get the path to an app specific directory in the config dir. This is our general recommendation to store stuff, but the next tauri release will have similar convenience functions for the other base dirs, for example appDataDir for non-config data