diff --git a/docs/functions/useSyncQuery.html b/docs/functions/useSyncQuery.html index 3ae436b..e0c5db1 100644 --- a/docs/functions/useSyncQuery.html +++ b/docs/functions/useSyncQuery.html @@ -10,4 +10,4 @@

Returns ReactiumSyncState<QueryResult<TData, TVariables>>

The sync state object.

-
+
diff --git a/docs/index.html b/docs/index.html index d695d8d..4b5d134 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,7 +14,7 @@
import { gql, useQuery } from '@apollo/client';
import React from 'react';

const GET_USERS = gql`
query GetUsers {
users {
id
name
email
}
}
`;

export const UsersList = () => {
const { loading, error, data } = useQuery(GET_USERS);
if (loading) return <div>Loading...</div>;
else if (error) return <div>Error: {error}</div>;
const { users } = data;

return (
<ul>
{users.map(({ id, name, email }) => (
<li key={id}>
{name}: {email}
</li>
))}
</ul>
);
};
-

When this module is installed in a Reactium project, it exposes it's own React hooks in the @reactium/graphql workspace.

+

When this module is installed in a Reactium project, it exposes it's own React hooks in the @reactium/graphql workspace. See the TypeDoc for this module.