From 12a34bb4b424a73c436fa0496978fac78f5d77e7 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Mon, 12 Jun 2023 00:21:30 +0200 Subject: [PATCH] catalog-react: clarify changeset Signed-off-by: Vincenzo Scamporlino --- .changeset/little-boats-think.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.changeset/little-boats-think.md b/.changeset/little-boats-think.md index d389bfbbb1..e2c81b6f21 100644 --- a/.changeset/little-boats-think.md +++ b/.changeset/little-boats-think.md @@ -3,6 +3,10 @@ --- The `EntityOwnerPicker` component has undergone improvements to enhance its performance. - -The component now loads entities asynchronously, resulting in improved performance and responsiveness. Instead of loading all entities upfront, they are now loaded in batches as the user scrolls. The previous implementation inferred users and groups displayed by the `EntityOwnerPicker` component based on the entities available in the `EntityListContext`. The updated version no longer relies on the `EntityListContext` for inference, allowing for better decoupling and improved performance. + +The component now loads entities asynchronously, resulting in improved performance and responsiveness. A new `mode` prop has been introduced which provides two different behaviours: + +- ``: loads the owners data asynchronously using the facets endpoint. The data is kept in memory and rendered asynchronously as the user scrolls. This is the default mode and is supposed to be retro-compatible with the previous implementation. + +- `` loads all users and groups present in the catalog asynchronously. The data is loaded in batches as the user scrolls. This is more efficient than `owners-only`, but has the drowback of displaying users and groups who aren't owner of any entity.