@connectedxm/client 7.4.2 → 7.4.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10804,8 +10804,9 @@ var UpdateSelf = async ({
10804
10804
  `/self`,
10805
10805
  params
10806
10806
  );
10807
- if (queryClient && data.status !== "ok") {
10808
- queryClient.refetchQueries({ queryKey: SELF_QUERY_KEY() });
10807
+ if (queryClient && data.status === "ok") {
10808
+ queryClient.invalidateQueries({ queryKey: SELF_QUERY_KEY() });
10809
+ queryClient.invalidateQueries({ queryKey: SELF_PROFILE_QUERY_KEY() });
10809
10810
  }
10810
10811
  return data;
10811
10812
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "7.4.2",
3
+ "version": "7.4.3",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",