We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4c709 commit ff24d5aCopy full SHA for ff24d5a
1 file changed
frontend/src/ts/components/common/AsyncContent.tsx
@@ -159,11 +159,9 @@ export default function AsyncContent<T extends QueryMapping>(
159
<div class={props.errorClass}>{handleError(err)}</div>
160
);
161
162
- // Only show loader on initial load, not on refetches
+ // Show loader on initial load or when the query key changed (no cached data)
163
const showLoader = (): boolean =>
164
- isLoading() &&
165
- !props.alwaysShowContent &&
166
- lastResolvedValue() === undefined;
+ isLoading() && !props.alwaysShowContent && !allResolved(value());
167
168
return (
169
<ErrorBoundary fallback={props.ignoreError ? undefined : errorText}>
0 commit comments