I have a tale Resource that I want to display in different ways for the same user, depending on the tale status
Tale with status = NEW should be shown with List1
Tales with status = APPROVED etc need to be shown as List2 (I need to display different properties of the tale)
How to achieve this using Admin-On-Rest?
On Adding the same resource twice (as below) and allocating different List Views to both is only causing the first to be displayed and the second is ignored
<Resource name="tales" list={EditorAssignedList} edit={EditTale} options={{ label: 'Assigned Tales' }}/>
<Resource name="tales" list={EditorTaleTrack} options={{ label: 'Your Tales' }}/>
The following error is logged.
flattenChildren(...): Encountered two children with the same key, `1:$tales`. Child keys must be unique;
Any strategies on how to inject unique key into the resource.