Skip to content

Commit f587907

Browse files
feat: add dummy submit hook
1 parent 241847c commit f587907

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/data/services/lms/hooks/data.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useQuery } from '@tanstack/react-query';
1+
import { useQuery, useMutation } from '@tanstack/react-query';
22

33
import { useMatch } from 'react-router-dom';
44
import { camelCaseObject } from '@edx/frontend-platform';
@@ -54,3 +54,10 @@ export const usePageData = (): types.QueryData<types.PageData> => {
5454
data,
5555
};
5656
};
57+
58+
export const useSubmitResponse = () => useMutation({
59+
mutationFn: (response) => {
60+
console.log({ submit: response });
61+
return Promise.resolve();
62+
},
63+
});

0 commit comments

Comments
 (0)