From e691b04fff49023687919e31184f20f8862fa13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:27:11 -0700 Subject: [PATCH] DataViews documentation: add high-level graph explaining DataViews and data sources interaction (#65457) Co-authored-by: oandregal Co-authored-by: youknowriad Co-authored-by: juanmaguitar --- packages/dataviews/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/dataviews/README.md b/packages/dataviews/README.md index 3ce895680a15c5..95b8fc898555c3 100644 --- a/packages/dataviews/README.md +++ b/packages/dataviews/README.md @@ -2,6 +2,10 @@ DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.). +DataViews is data agnostic, it can work with data coming from a static (JSON file) or dynamic source (HTTP Request) — it just requires the data to be an array of objects that have an unique identifier. Consumers are responsible to query the data source appropiately based on the DataViews props: + +![DataViews flow](https://developer.wordpress.org/files/2024/09/368600071-20aa078f-7c3d-406d-8dd0-8b764addd22a.png "DataViews flow") + ## Installation Install the module