[feat] Need to use multiple invoke_handlers
moluopro opened this issue · 1 comments
moluopro commented
Describe the problem
Only one invoke_handler will take effect. How do I want to be able to register other regular functions directly while using a customized invoke_handler?
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
// First
.invoke_handler(my_invoke_handler)
// Second
.invoke_handler(tauri::generate_handler![greet, println])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
Describe the solution you'd like
Need to use multiple invoke_handlers
Additional context
Version: tauri 2.0