MCPcopy Create free account
hub / github.com/code100x/daily-code / fetchQuestions

Function fetchQuestions

apps/web/components/mcq/MCQCard.tsx:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20 useEffect(() => {
21 const fetchQuestions = async () => {
22 try {
23 const questions = await getAllMCQsForProblem(problem.id);
24 setQuestions(questions);
25 } catch (error) {
26 console.error("Error fetching MCQ questions:", error);
27 }
28 };
29 fetchQuestions();
30 }, [problem.id]);
31

Callers 1

MCQCardFunction · 0.85

Calls 1

getAllMCQsForProblemFunction · 0.90

Tested by

no test coverage detected