Closed laodino closed 7 months ago
If you want to keep the snake_case on the frontend you have to annotate the command with #[tauri::command(rename_all = snake_case)]
instead of #[tauri::command]
. We'll incorporate this info into the new docs :)
Describe the bug
I'm just learning tauri serveal days ago,and i cant find the way to solve this problem. front-end code: front-end error: backend code: when i use args without '_', this error wont happen. and if i change the front-end code like this: this error also wont happen. by the way,i cant update tauri cli, it always 1.4.0 (outdated), although it is 1.5.11 in devDependencies.
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response