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
Now, the thing is, this code works fine if the marketIds are entries from one of the first 25 items that it pulls once it's mounted, but if it's not, then the markets input is just blank.
My question is: is there a way to preload the defaultValue entries on mount?
One way I've tried it was with passing the filter={{ ids: marketIds }} to <ReferenceArrayInput />, but this filter is obviously static, so that would affect all subsequent autocomplete queries
I'm using react-admin version 4.1.2
The text was updated successfully, but these errors were encountered:
I have a custom dashboard page, where I save certain IDs for a resource and save them in local storage, and the code looks something like this:
Now, the thing is, this code works fine if the marketIds are entries from one of the first 25 items that it pulls once it's mounted, but if it's not, then the markets input is just blank.
My question is: is there a way to preload the defaultValue entries on mount?
One way I've tried it was with passing the
filter={{ ids: marketIds }}
to<ReferenceArrayInput />
, but this filter is obviously static, so that would affect all subsequent autocomplete queriesI'm using react-admin version 4.1.2
The text was updated successfully, but these errors were encountered: