Invalidate router inside beforeLoad - TanStack