While expanding multiple rows in a Material Mat-Table in which each row fetches data from an API , the dataSource is getting overridden for the already open rows , i.e - the first rows inner data is override by the second row inner data when 2nd row is opened . Similarly if 3rd row is opened all the inner data becomes same .
I tried changing the dataSource
with dataSource[i]
based on the index values but that didnt work .