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
What you were expecting:
access meta in getMany dataProvider function when it's called by ReferenceArrayInput.
What happened instead:
meta in getMany dataProvider function is empty
Steps to reproduce:
set something like queryOptions={{ meta: { pretty: true } }} in ReferenceArrayInput.
look at getMany fn in dataprovider -> params.meta is empty
You are correct. And it's even actually documented that way here:
Use the queryOptions prop to pass options to the dataProvider.getList() query that fetches the possible choices.
However, I'm not sure why we would pass it to getList but not getMany. IMO we should do both.
So I'll qualify this as a bug for now. @djhi can you confirm?
What you were expecting:
access meta in getMany dataProvider function when it's called by ReferenceArrayInput.
What happened instead:
meta in getMany dataProvider function is empty
Steps to reproduce:
set something like
queryOptions={{ meta: { pretty: true } }}
in ReferenceArrayInput.look at getMany fn in dataprovider -> params.meta is empty
Related code:
https://codesandbox.io/p/sandbox/wispy-water-155fuq?welcome=true&file=%2FREADME.md
PostEdit.tsx
dataProvider.tsx
Environment
The text was updated successfully, but these errors were encountered: