As I am using React with TypeScript, I also like to use TanStack, and I wrap the Wails bindings in useMutation, so a simple one could be defined as easily as: import * as m from '@wailsjs/go/main/App' ...
I'm calling mutate() in the useEffect() of a component. Basically I want to invoke something when opening a modal - so I cannot react on the button click, if the mutation should be in the modal itself ...
The detailed view of a task is characterized by two technical features. Firstly, the path to the route contains a variable placeholder that must be filled with a task ID at runtime (/task/1, /task/2 ...