refactor: trim widget reload plumbing

This commit is contained in:
Thomas Camlong committed 2026-08-23 09:00:33 +02:00
1 parent a22fb60647
commit 0073dfe044
7 files changed
+2 -66

No files matched your search

@@ -161,7 +161,6 @@ const LoadedBoardItemContent = ({
const widgetQueryKeys = useMemo(() => getWidgetQueryKeys(definition, item.kind), [definition, item.kind]);
const isWidgetRefreshing =
useIsFetching({
type: "active",
predicate: (query) =>
query.state.data !== undefined &&
matchesWidgetItemQuery(
@@ -343,11 +342,6 @@ const LoadedBoardItemContent = ({
/>
</ErrorBoundary>
</Box>
{/*
Purely decorative: widgets keep showing their previous data while they
refresh, and every widget refreshes on a timer, so announcing this would
make assistive technology repeat "loading" for the whole board forever.
*/}
{isWidgetRefreshing && (
<Box className={itemContentClasses.refreshIndicator} data-widget-refreshing aria-hidden>
<Loader size="xs" />