Skip to content

Instantly share code, notes, and snippets.

View captainhusaynpenguin's full-sized avatar

Captain Husayn Penguin captainhusaynpenguin

View GitHub Profile

Quick start

Tauri is shipped with state management function/feature by default.

Basic usage is quite simple: a variable of State type can be accessed on the tauri commands which you have defined; in other words, "with tauri commands, they'll magically inject state for you," so that once a variable is managed you can inject them directly as additional input when defining the command.

Example Implementation