Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Jun 8, 2023
1 parent c22ad33 commit 257b19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/current-user/createCurrentUserPrimitive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export default function createCurrentUserPrimitive<T>(config: Config<T>) {
}
});

setPrimitive<T>([currentUser, { authenticationStatus, authenticationError, refetch }]);
setPrimitive<T>([currentUser, { authenticationStatus, authenticationError, refetchCurrentUser: refetch }]);
});
}
2 changes: 1 addition & 1 deletion src/current-user/globalPrimitive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AuthenticationStatus from './AuthenticationStatus';
export type CurrentUserPrimitive<T> = [Resource<T>, {
authenticationStatus: Accessor<AuthenticationStatus>;
authenticationError: Accessor<Error | null>
refetch: any;
refetchCurrentUser: any;
}];

let primitive: CurrentUserPrimitive<any>;
Expand Down

0 comments on commit 257b19f

Please sign in to comment.