Managed State #4202
genericblueprint
started this conversation in
General
Managed State
#4202
Replies: 2 comments 2 replies
-
Yes but you need access to a struct that implements the Manager trait, so App, AppHandle or Window. Then you can use state() to get managed state let my_state: tauri::State<MyState> = app.state();
// or
let my_state = app.state::<MyState>(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
How would I access something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to access and mutate the managed state from a Rust function that isn't a
#[tauri::command]
?Beta Was this translation helpful? Give feedback.
All reactions