Dynamic data with nested table data implementation
Content
Hi,
I need to code the functionality involving displaying data, obtained from API service when user opens the details view of a parent record.
The parent record is being displayed in the collapsible component.
The details view data should be displayed with table component.
The parent record data contains the identifier to obtain the details data.
The number of parent records is dynamic.
If possible I would like to only populate the details table when user opens the details view.
I have already tried adding property to the parent data item type which would hold the details array data for the table but when I tried to update it I got strange errors and the component I have been using (collapsible) automatically closed, probably because the parent data changed.