I have to check in more detail tomorrow. I might have done a stupid mistake. Maybe all I needed, was add proper typing to Success:
export const Success = ({ tenant, children }: PropsWithChildren<CellSuccessProps<FindTenantById>>) => {
return <>{children}</>//<Tenant tenant={tenant} />
}
The createCell file actually decomposes props into const {children: _, variables } = props
for the queries. But Sucess still gets full {...props}
. And tests also include children for Cells. So the comment within createCell might be misleading.
But it might be worth considering, only distributing children to the Success component. What do you think @Tobbe ? Maybe the Empty component can be considered, too.