Replies: 1 comment 1 reply
-
Did you try simply logging the message and checking its type and value? Assuming everything in the command worked well the return type should be a normal js array of objects like [
{ uuid: "abc", ... },
{ uuid: "def", ... },
...
] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am returning a
Vec<Todo>
from a Tauri command and then trying to iterate over it using Svelte's{#each}
syntax. Svelte errors with :Error: {#each} only works with iterable values.
upon doing so, and I feel that this has something to do with Tauri's returned type not making sense to JS. I am not using TS currently, although I would consider switching if that is the issue.Svelte file:
Rust (I have removed some stuff):
Beta Was this translation helpful? Give feedback.
All reactions