@behio/storefront-sdk 2.0.2 → 2.0.3
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/README.md +1 -1
- package/dist/react.js +1 -2
- package/dist/react.mjs +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ accepting the server response. This includes adding, clearing, applying or
|
|
|
18
18
|
removing a discount, and merging baskets. A delayed read cannot restore an old
|
|
19
19
|
basket after one of those actions succeeds.
|
|
20
20
|
|
|
21
|
-
From 2.0.
|
|
21
|
+
From 2.0.3, responses and retries from an older customer, cart session, currency,
|
|
22
22
|
country or locale are rejected with SDK status 409. Retry explicitly in the
|
|
23
23
|
current context. An ordinary token refresh remains in the same customer session.
|
|
24
24
|
`useAuth()` cancels old queries and removes customer data and prices on an
|
package/dist/react.js
CHANGED
|
@@ -2820,8 +2820,7 @@ function useAuth() {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
if (client.getAuthContextVersion() !== authVersion) return;
|
|
2823
|
-
queryClient.invalidateQueries({ queryKey: [
|
|
2824
|
-
void refreshBundleQueries(queryClient);
|
|
2823
|
+
void queryClient.invalidateQueries({ queryKey: ["behio"] });
|
|
2825
2824
|
}, [client, storage, queryClient]);
|
|
2826
2825
|
const loginMutation = (0, import_react_query14.useMutation)({
|
|
2827
2826
|
mutationFn: async ({ email, password }) => {
|
package/dist/react.mjs
CHANGED
|
@@ -2710,8 +2710,7 @@ function useAuth() {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
2712
|
if (client.getAuthContextVersion() !== authVersion) return;
|
|
2713
|
-
queryClient.invalidateQueries({ queryKey: [
|
|
2714
|
-
void refreshBundleQueries(queryClient);
|
|
2713
|
+
void queryClient.invalidateQueries({ queryKey: ["behio"] });
|
|
2715
2714
|
}, [client, storage, queryClient]);
|
|
2716
2715
|
const loginMutation = useMutation2({
|
|
2717
2716
|
mutationFn: async ({ email, password }) => {
|