Data Provider Component
Release
Authors:
Matt Salmon, Esma Tuzovic
Changed on:
5 June 2024
| Target release date: | 2024-06-03 |
|---|---|
| Release status: | Development |
Description
This release introduces the GraphQL Data Provider component, which enhances data handling capabilities for various components. The component is a versatile data provider that offers improved control over data queries and fetching behaviors.Changelog
Changelog:- GraphQL Data Provider Component:
- Serves as a wrapper, altering the data context for its descendants, making it ideal for displaying or utilizing data different from the page query.
- Provides enhanced control over data queries, including pagination and bulk data fetching capabilities.
- Child components receive data from this provider’s queries instead of page-level queries.
- Additional Component Features:
- Auto Pagination: Automatically paginates up to one connection in the provided query, fetching data in pages until the max limit is reached or no more pages are available.
- Loading Behavior Control: The
`loadingBehavior`property allows child components to either render as data arrives or wait until all data is loaded. - Data Fetching State: The
`dataProviderState`field in the data prop indicates the fetching state (ok, error, loading, max), aiding in component behavior management.
- Utilize different GraphQL queries or the same query with other variables.
- Split complex queries to manage data more efficiently.
- Fetch data based on page-level query results to enhance page interactivity and responsiveness.
| Released capability depth: | New capability |
|---|---|
| Release bundle / Capability type: | Platform |
