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 2e65f45 commit e67c1e3Copy full SHA for e67c1e3
dashboard/src/components/users/users-table.tsx
@@ -136,6 +136,7 @@ const UsersTable = memo(() => {
136
data: usersData,
137
refetch,
138
isLoading,
139
+ isFetching,
140
} = useGetUsers(filters, {
141
query: {
142
staleTime: 0,
@@ -349,7 +350,7 @@ const UsersTable = memo(() => {
349
350
setCurrentPage(0)
351
}}
352
/>
- <DataTable columns={columns} data={usersData?.users || []} isLoading={showLoadingSpinner} isFetching={false} onEdit={handleEdit} />
353
+ <DataTable columns={columns} data={usersData?.users || []} isLoading={showLoadingSpinner} isFetching={isFetching && !isFirstLoadRef.current} onEdit={handleEdit} />
354
<PaginationControls
355
currentPage={currentPage}
356
totalPages={totalPages}
0 commit comments