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 4f4b159 commit c8392a9Copy full SHA for c8392a9
1 file changed
src/current-user/useCurrentUser.test.tsx
@@ -26,7 +26,7 @@ test('use current user primitive', () => {
26
meta: { foo: 1 }
27
});
28
29
- const [currentUser, { authenticationStatus, meta }] = useCurrentUser<User>();
+ const [currentUser, { authenticationStatus, meta }] = useCurrentUser<User, { foo: number }>();
30
31
expect(currentUser.loading).toBe(false);
32
expect(currentUser()?.name).toBe('John');
0 commit comments