fix(usage): ensure refresh button shows loading animation on click

Changed from isLoading to isFetching to properly track all query states.
Previously, the refresh button spinner would not animate when clicking
refresh because isLoading only indicates initial load without cached data.
isFetching covers all query states including manual refetches.
This commit is contained in:
Jason
2025-11-03 23:13:30 +08:00
parent 0f62829599
commit ccb011fba1

View File

@@ -19,7 +19,7 @@ const UsageFooter: React.FC<UsageFooterProps> = ({
const { t } = useTranslation();
const {
data: usage,
isLoading: loading,
isFetching: loading,
refetch,
} = useUsageQuery(providerId, appId, usageEnabled);