Query tree data structure with parent-children loading - TanStack