#Handler name for commands in a module

2 messages · Page 1 of 1 (latest)

remote garnet
#

For example, if I got a handler named module1::handler1, if I pass it in to handler generator like this:

tauri::Builder::default()
        .invoke_handler(tauri::generate_handler![
            module1::handler1
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");

Which name should I use when I want to invoke it with tauri.invoke() in JS, module1::handler1 or simply handler1?

shadow spindle
#

handler1