[bug] Tauri command sends Result<(PathBuf, Vec<u8>, [isize; MAX_DIMS]), ipc_core::ErrorTy>
as Array(3)
#6455
Labels
Result<(PathBuf, Vec<u8>, [isize; MAX_DIMS]), ipc_core::ErrorTy>
as Array(3)
#6455
Describe the bug
I have the following Tauri command:
I.e. its return type is
Result<(PathBuf, Vec<u8>, [isize; MAX_DIMS]), ipc_core::ErrorTy>
.On the frontend, we use
wasm_bindgen
to access global Tauri object and callinvoke
on it:On top of it we use a wrapper that makes calls to
default_slice_with_metadata
Tauri command more convenient:The code above was altered a bit because it is meant to demonstrate that Tauri sends the data in a way that is distinct from the way that is expected by
serde-wasm-bindgen
.Reproduction
Create a command with a similar signature and send an
Ok(...)
object.Expected behavior
Result<(PathBuf, Vec<u8>, [isize; MAX_DIMS]), ipc_core::ErrorTy>
should be sent as a value that would be compatible withserde-wasm-bindgen
.Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: