When is "select" function called exactly? - TanStack