How to do shared tauri::command definitions for frontend and backend? #11093
-
Hi! Closest I came up with is having all invoke() calls wrapped in functions in one place and never to call invoke() directly. That still poses a risk of missing something. I don't have an idea for a proper solution either. I guess I could have a macro to generate calling function (wrapper around invoke) and called function (marked with tauri::command) from one definition but I would have to do it in a way that allows me to NOT have my commands implementations in there. I hope my description is understandable. If anyone have this problems solved in any way I'd love to get some pointers :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
check out this comment #1514 (comment) it's the best summary there currently is imo |
Beta Was this translation helpful? Give feedback.
check out this comment #1514 (comment) it's the best summary there currently is imo