Skip to content

Commit

Permalink
Remove stale time to prevent alot of reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Sep 8, 2023
1 parent a4ff855 commit 19a262b
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const AddEditOrganization = (props: AddEditOrganizationProps) => {
{
select: (res) => getResourcesFromBundle(res) as IPractitionerRole[],
onError: () => sendErrorNotification(t('There was a problem fetching practitioners')),
staleTime: 0,
}
);

Expand All @@ -71,7 +70,6 @@ export const AddEditOrganization = (props: AddEditOrganizationProps) => {
return getResourcesFromBundle(res) as IPractitionerRole[];
},
enabled: !!orgId,
staleTime: 0,
}
);

Expand Down

0 comments on commit 19a262b

Please sign in to comment.