Add extra function to onchange of indeterminate checkbox - TanStack