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
Receiving meta in data provider when using ReferenceInput and passing in queryOptions.
What happened instead:
meta is undefined.
ReferenceInput passes all props towards useReferenceInputController.
Then useReferenceInputController destructures its props, among others into queryOptions.
What you were expecting:
Receiving
meta
in data provider when usingReferenceInput
and passing inqueryOptions
.What happened instead:
meta
is undefined.ReferenceInput
passes all props towardsuseReferenceInputController
.Then
useReferenceInputController
destructures its props, among others intoqueryOptions
.Those
queryOptions
are then all passed touseGetList
in https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/controller/input/useReferenceInputController.ts#L101... however
meta
would have to go to the second parameter object. Not the third.Contrary
useListController
is separating those here https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/controller/list/useListController.ts#L48 (and passing separately in turn)Steps to reproduce:
Related code:
Other information:
Environment
The text was updated successfully, but these errors were encountered: