Reputation: 434
How can I pass additional arguments from the List
component to the dataProvider I am building?
For example:
<List filter={myFilters} perPage={10} myArgs={someArgs} {...props} >
I do receive the filter
argument, but I don't receive myArgs
.
Upvotes: 1
Views: 1757
Reputation: 7335
You can't. dataProvider.getList()
only accepts filter, sort, and pagination parameters (see documentation).
You can add code in your dataProvider to transform a specific filter into a special argument, or use another resource name that triggers a special piece of logic.
But the question is: why do you need to pass additional parameters for?
Upvotes: 1