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 Updated 4 repo stars

File contents

stuffbucket/skills commit b5ef530e5f

Frequently asked questions

npx get-skill add stuffbucket/tauri-commands-state-injection