Skip to content

Commit a1f4916

Browse files
mmatejaslax57
andauthored
Move refetch to onSuccess in doc example
Co-authored-by: Jean-Baptiste Kaiser <[email protected]>
1 parent fcf7364 commit a1f4916

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/usePermissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ const GrantAdminPermissionsButton = () => {
7575
update(
7676
"users",
7777
{ id: record.id, data: { admin: true }, previousData: record },
78+
{ onSuccess: refetch },
7879
);
79-
refetch();
8080
}
8181

8282
return (

0 commit comments

Comments
 (0)