Skip to content
Discussion options

You must be logged in to vote

The same as without state. Tauri will inject the state for you. So for example both of these commands are the same on the javascript side

fn my_cmd() {}
fn my_cmd(state: State<SomeType>) {}

-> invoke("my_cmd")

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eyyyyyyy3
Comment options

@FabianLars
Comment options

Answer selected by eyyyyyyy3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants