React hook to make use of a shared query inside any React component. The args do not need to be specified if no args are needed, i.e. this would work
const allUsers = useSharedQuery(listUsersQuery); Copy
const allUsers = useSharedQuery(listUsersQuery);
Example:
const users = useSharedQuery(usersQuery, "userid123"); Copy
const users = useSharedQuery(usersQuery, "userid123");
React hook to make use of a shared query inside any React component. The args do not need to be specified if no args are needed, i.e. this would work
Example: