#accessing created structs within' tauri;;command func
7 messages · Page 1 of 1 (latest)
at the moment i figured out a work around with statics and unsafe
alright i got it working, just need to find a SAFER method lol
Use the Tauri State API. https://github.com/tauri-apps/tauri/blob/dev/examples/state/main.rs#L73
You .manage() some State and then use dependency injection in your commands to access the value.
well hell yeah thank you
No problem! I hope your Tauri journey is a good one. 🙂