Pattern for mutations that trigger queries and further mutations - TanStack