-
-
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
Support params in <Resource /> name #3020
Comments
It is possible to re-use |
In fact, I see myself recreating 4 Crud That would be nice if that could be a default feature. We'll look how this can be done. |
I think you can achieve that by writing your own |
Fair enough, I will post a solution if we solve this on our side. Thanks |
I'm sorry but for while, there is a workaround? |
Hi @lukastoledo not yet, this feature is something we would help use save some extra lines. Instead we are use |
Any news regarding this? |
Supports of params in
<Resource />
nameWe keep struggling creating customized list views.
Because
<List />
is tightly coupled with the URL, it makes it complicated to use it incustomRoutes
.What we want is to fetch and display a list of records with the react-admin UI.
We have tried to use
<Resource />
to create more than one list view (It seems from #2903 (comment) that people can build most of the UI with the current react-admin without hassle).I want a way to pass
filter
to the list within any<Resource />
, for instance:Reproduction
I have declared the resource as follow:
Result
Params are not replaced in CRUD requests.
Expected
We expect to query the backend with the replaced params of the url we are on when querying the list.
I assert this is not currently possible because
<Resource />
.This would have helped us to set
filter
on<List />
using params from the URL and create more than one list per entities.Is there another strategy I have not thought of?
If not, could this be implemented?
The text was updated successfully, but these errors were encountered: