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 7d94126 commit 178a018Copy full SHA for 178a018
package/pyconkr-shop/hooks/index.ts
@@ -11,7 +11,8 @@ const QUERY_KEYS = {
11
};
12
13
const MUTATION_KEYS = {
14
- USER_SIGN_IN: ["mutation", "user", "sign_in"],
+ USER_SIGN_IN_EMAIL: ["mutation", "user", "sign_in", "email"],
15
+ USER_SIGN_IN_SNS: ["mutation", "user", "sign_in", "sns"],
16
CART_ITEM_APPEND: ["mutation", "cart", "item", "append"],
17
CART_ITEM_REMOVE: ["mutation", "cart", "item", "remove"],
18
CART_ORDER_START: ["mutation", "cart_order", "start"],
@@ -35,13 +36,13 @@ namespace ShopAPIHook {
35
36
37
export const useSignInWithEmailMutation = () =>
38
useMutation({
- mutationKey: MUTATION_KEYS.USER_SIGN_IN,
39
+ mutationKey: MUTATION_KEYS.USER_SIGN_IN_EMAIL,
40
mutationFn: ShopAPIRoute.signInWithEmail,
41
});
42
43
export const useSignInWithSNSMutation = () =>
44
45
+ mutationKey: MUTATION_KEYS.USER_SIGN_IN_SNS,
46
mutationFn: ShopAPIRoute.signInWithSNS,
47
48
0 commit comments