MCPcopy Create free account
hub / github.com/codelitdev/courselit / useExecuteGraphQLQuery

Function useExecuteGraphQLQuery

packages/app/components/CustomHooks.js:16–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14// ))
15
16export const useExecuteGraphQLQuery = () => {
17 const auth = useSelector((state) => state.auth);
18 const dispatch = useDispatch();
19
20 return queryGraphQLWithUIEffects(
21 `${BACKEND}/graph`,
22 dispatch,
23 networkAction,
24 auth.token
25 );
26};

Callers 4

UsersManagerFunction · 0.90
UserDetails.jsFile · 0.90
CourseEditor.jsFile · 0.90
CoursesManager.jsFile · 0.90

Calls 1

Tested by

no test coverage detected