Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of changes does this PR include?
Description
With
...
to indicate that it's possible to generate multiple handles:or without:
By the way, I don't know if there any difference between calling
invoke_handle
multiple times vs only one.Use
match
or
unwrap()
Then another situation: The JavaScript part seems too crude compared to Rust. We could Improve by adding the whole function in JS. I had to add function signature in Rust because of the handle part.
Another issue is regarding how to call those functions from Rust frontend. Afaik there's Yew, Leptos and Sycamore to Rust frontend and each one would have a different way to write. The vanilla option is html/css/js.
Because of this I'm thinking in a different approach in the last step: "3. Call it from your frontend -> Tabs (Rust | JavaScript)" with links for the frameworks specific guides on how to call function from Tauri/Rust backend.
I was reading some past pr discussions but if there's anything relevant to read I appreciate. Thanks
Note: I'm still learning Rust.