Skip to content
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

Add support for response metadata in dataProvider.getList() #10179

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

fzaninotto
Copy link
Member

Closes #9569

Problem

Even though some API backends return additional data in the getList results (e.g. facets and other aggregations), there is currently no way to access them.

Solution

Update useGetList and ListContext to return any meta property present in the API response.

Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great addition 👍

docs/List.md Outdated Show resolved Hide resolved
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
@djhi djhi merged commit f8ff8a0 into next Sep 4, 2024
14 checks passed
@djhi djhi deleted the response-metadata branch September 4, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants