beforeload with async does not seem to wait or creates infinite rerenders - TanStack