MCPcopy Create free account
hub / github.com/apollographql/fullstack-tutorial / IsLoggedIn

Function IsLoggedIn

final/client/src/index.tsx:47–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45`;
46
47function IsLoggedIn() {
48 const { data } = useQuery(IS_LOGGED_IN);
49 return data.isLoggedIn ? <Pages /> : <Login />;
50}
51
52// Find our rootElement or throw and error if it doesn't exist
53const rootElement = document.getElementById('root');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected