MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / UserDetails

Function UserDetails

test/auth.test.tsx:291–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 it('always returns a user if inside an <AuthCheck> component', async () => {
290 // Since this is wrapped in an AuthCheck component and we never sign in, this should never get rendered
291 const UserDetails = () => {
292 const { data: user } = useUser();
293
294 expect(user).not.toBeNull();
295 expect(user).toBeDefined();
296
297 return <h1>Hello</h1>;
298 };
299
300 render(
301 <>

Callers

nothing calls this directly

Calls 1

useUserFunction · 0.85

Tested by

no test coverage detected