Skip to content

Non-exposed/serialized argument in #[command] #2304

Answered by FabianLars
smolck asked this question in Q&A
Discussion options

You must be logged in to vote

What about using state?
See: https://tauri.studio/en/docs/guides/command/#accessing-managed-state
And: https://github.com/tauri-apps/tauri/tree/dev/examples/state
And while we're at it this one too: https://github.com/tauri-apps/tauri/tree/dev/examples/commands

As you suggested a use_state thingy yourself I think that's exactly what you'd want?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@smolck
Comment options

Answer selected by amrbashir
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