How to get array of custom rust structs in javascript frontend from invoke()
?
#10455
Answered
by
pan-grayza
pan-grayza
asked this question in
Q&A
-
I have a custom struct on back-end and tauri command that returns vector of those structs. let linked_paths = [];
async function get_linked_paths() {
linked_paths = await invoke("get_linked_paths")
.catch((e) => console.error(e));;
} on linked_paths Im getting this error:
and on
and
|
Beta Was this translation helpful? Give feedback.
Answered by
pan-grayza
Aug 3, 2024
Replies: 1 comment
-
So the problem was that I used toml, that js don't understand. I'm using json now and it works fine |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pan-grayza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So the problem was that I used toml, that js don't understand. I'm using json now and it works fine