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:
Passing the queryOptions prop to ReferenceArrayField should not require the queryKey property.
What happened instead:
Typescript error:
Property 'queryKey' is missing in type '{}' but required in type 'UseQueryOptions<RaRecord<Identifier>[], Error, RaRecord<Identifier>[], QueryKey>'.ts(2741)
Steps to reproduce:
Have a ReferenceArrayField component and specify queryOptions without queryKey for it.
What you were expecting:
Passing the
queryOptions
prop toReferenceArrayField
should not require thequeryKey
property.What happened instead:
Typescript error:
Steps to reproduce:
Have a
ReferenceArrayField
component and specifyqueryOptions
withoutqueryKey
for it.Related code:
Other information:
The component passes
queyOptions
touseReferenceArrayFieldController
, which uses the correct type by omitting the "forbidden" fields:Environment
The text was updated successfully, but these errors were encountered: