-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Straightforward way of sending additional querystring parameters to the backend #7219
Comments
For current version of react-admin you have a solution here. In the next mayor version, coming soon, you would be able to send extra parameters to any function of a dataProvider. So, I'm closing this issue, since as an enhancement request it has already been address for version 4 of react-admin. |
Hi @WiXSL, thanks for this quick reply. I don't think the v3 solution would work out since it relies on adding the parameter to filters, not as an autonomous querystring parameter. Anyway we are already building on v4 so to be already compatible once it comes out. As for the v4 enhancement, are you talking about the 'meta' property?
It might work but looking for example at
Am I missing something? Thanks again! BTW: if a subscription is necessary to go this deep into the conversation we'll happily purchase one (we already want to, so no problem at all to purchase it right now) |
Yes, I'm talking about the
|
Not yet |
@djhi I guess that my FR boils down to: -> On v4, possibility of passing the BTW thanks for such a quick feedback, we just subscribed to the enterprise edition 🚀 |
For your information, this has been added to react-admin, and released in 4.2.0. See #7841 for details. |
Hi! I'm using RA and really loving it but there is something that make it "difficult" to integrate into existing backends (we are migrating a multi hundred endpoint application to RA).
Something we're missing is a straightforward possibility of sending custom query parameters from the components/hooks to the dataProvider and then from the dataProvider to the backend. What I would like to propose is a really simple mechanism to do it, like:
And consequently (just one to make my point):
And for example on
ra-data-simple-rest
:Creating custom resources, custom dataProviders, custom methods on the dataProvider... those all look far too complicated and cumbersome to achieve such a simple functionality.
I don't know if this is a breaking change or not, I'm proposing it as a standalone issue since I don't think it is backward incompatible.
Thanks for your time and for this library!
The text was updated successfully, but these errors were encountered: