#Get UTC start time
15 messages · Page 1 of 1 (latest)
How do you store values?
I didn't know where to find it on the tauri website
or docs
Are you primarily a Rust or JS dev?
You can store it in JS, but then if the user refreshes the page the data will be lost. On the Rust side the state will exist for the duration of the program.
rust
Yeah that's what I'm looking for
I'm a little confused by tauri's docs and can't seem to find anything there
You'll see in this example the .manage() method to initialize State. And then in commands (and other places) you can access this value.
You may not need a Mutex if you never plan on updating this value.
[SOLVED] Get UTC start time