@teamnovu/kit-shopware-composables 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -596,7 +596,7 @@ function It(e) {
|
|
|
596
596
|
onSuccess: async (n, r, a) => {
|
|
597
597
|
var u, o;
|
|
598
598
|
await Promise.all([
|
|
599
|
-
t.
|
|
599
|
+
t.resetQueries({ queryKey: F.all() }),
|
|
600
600
|
t.invalidateQueries({ queryKey: I.get() }),
|
|
601
601
|
t.invalidateQueries({ queryKey: L.all() })
|
|
602
602
|
]), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -612,7 +612,7 @@ function Lt(e) {
|
|
|
612
612
|
onSuccess: async (n, r, a) => {
|
|
613
613
|
var u, o;
|
|
614
614
|
await Promise.all([
|
|
615
|
-
t.
|
|
615
|
+
t.resetQueries({ queryKey: F.all() }),
|
|
616
616
|
t.invalidateQueries({ queryKey: I.get() }),
|
|
617
617
|
t.invalidateQueries({ queryKey: L.all() })
|
|
618
618
|
]), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export function useLoginCustomerMutation(
|
|
|
34
34
|
},
|
|
35
35
|
onSuccess: async (newCustomer, variables, context) => {
|
|
36
36
|
await Promise.all([
|
|
37
|
-
queryClient.
|
|
37
|
+
queryClient.resetQueries({ queryKey: contextKeys.all() }),
|
|
38
38
|
queryClient.invalidateQueries({ queryKey: cartKeys.get() }),
|
|
39
39
|
queryClient.invalidateQueries({ queryKey: customerKeys.all() }),
|
|
40
40
|
])
|
|
@@ -25,7 +25,7 @@ export function useLogoutCustomerMutation(
|
|
|
25
25
|
},
|
|
26
26
|
onSuccess: async (data, variables, context) => {
|
|
27
27
|
await Promise.all([
|
|
28
|
-
queryClient.
|
|
28
|
+
queryClient.resetQueries({ queryKey: contextKeys.all() }),
|
|
29
29
|
queryClient.invalidateQueries({ queryKey: cartKeys.get() }),
|
|
30
30
|
queryClient.invalidateQueries({ queryKey: customerKeys.all() }),
|
|
31
31
|
])
|