Skip to content

Commit

Permalink
Use isLoading state exposed from swr
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Dec 11, 2024
1 parent b66b354 commit 2ac056e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/admin.roles.v2/api/use-get-roles-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const useGetRolesList = <Data = RoleListInterface, Error = RequestErrorInterface
const {
data,
error,
isLoading,
isValidating,
mutate,
response
Expand All @@ -69,7 +70,7 @@ const useGetRolesList = <Data = RoleListInterface, Error = RequestErrorInterface
return {
data,
error,
isLoading: !error && !data,
isLoading,
isValidating,
mutate,
response
Expand Down

0 comments on commit 2ac056e

Please sign in to comment.