Understanding beforeLoad - TanStack