You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ReferenceManyField> creates a ListContext with the related records, so you can use any component relying on this context (<Datagrid>, <SimpleList>, etc.).
What happened instead:
No debounce effect when using ReferenceManyField with filters.
What you were expecting:
ReferenceManyField has same filter debounce behavoir as normal list context.
Documentation:
What happened instead:
No debounce effect when using ReferenceManyField with filters.
Steps to reproduce:
To reproduce in the sandbox I basically added FilterLiveSearch to PostShow.tsx:
<ReferenceManyField reference="comments" target="post_id" sort={{ field: 'created_at', order: 'DESC' }} > + <FilterLiveSearch source="body" /> <Datagrid> <DateField source="created_at" /> <TextField source="author.name" /> <TextField source="body" /> <EditButton /> </Datagrid> </ReferenceManyField>
Related code:
To me it looks like the implementation of
useReferenceManyFieldController
ignores the debounce parameter ofsetFilters
:Other information:
Environment
The text was updated successfully, but these errors were encountered: