We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 241847c commit f587907Copy full SHA for f587907
src/data/services/lms/hooks/data.ts
@@ -1,4 +1,4 @@
1
-import { useQuery } from '@tanstack/react-query';
+import { useQuery, useMutation } from '@tanstack/react-query';
2
3
import { useMatch } from 'react-router-dom';
4
import { camelCaseObject } from '@edx/frontend-platform';
@@ -54,3 +54,10 @@ export const usePageData = (): types.QueryData<types.PageData> => {
54
data,
55
};
56
57
+
58
+export const useSubmitResponse = () => useMutation({
59
+ mutationFn: (response) => {
60
+ console.log({ submit: response });
61
+ return Promise.resolve();
62
+ },
63
+});
0 commit comments