Tauri Commands State Injection

Use when wiring managed state into Tauri v2 commands — registering state with `app.manage()` in `setup`, accessing it via `State`, async state with `tokio::sync::Mutex` (never std::sync::Mutex across `.await`), interior mutability (`Arc`, `RwLock`, `parking_lot`), `AppHandle::state::T()` outside commands, or composing multiple state types.

stuffbucket b5ef530 2 files · 8.8 KB Updated

File contents

stuffbucket/skills/tree/main/plugins/stuffbucket/skills/tauri-commands-state-injection commit b5ef530e5f

Frequently asked questions

npx skillmds@latest add stuffbucket/tauri-commands-state-injection