We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c354c9d commit d6bd230Copy full SHA for d6bd230
1 file changed
sample/src/hooks/useCheckoutEventHandlers.ts
@@ -21,10 +21,11 @@ interface EventHandlers {
21
}
22
23
export function useShopifyEventHandlers(name?: string): EventHandlers {
24
- const log = createDebugLogger(name ?? '');
25
const {clearCart} = useCart();
26
27
return useMemo(() => {
+ const log = createDebugLogger(name ?? '');
28
+
29
return {
30
onPress: () => {
31
log('onPress');
@@ -50,5 +51,5 @@ export function useShopifyEventHandlers(name?: string): EventHandlers {
50
51
52
},
53
};
- }, [log, clearCart]);
54
+ }, [clearCart, name]);
55
0 commit comments