@ic-reactor/react 1.11.2 → 1.12.1

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.
@@ -147,7 +147,7 @@ const actorHooks = (actorManager) => {
147
147
  };
148
148
  const useQueryCall = (_a) => {
149
149
  var { refetchOnMount = true, refetchInterval = false } = _a, rest = __rest(_a, ["refetchOnMount", "refetchInterval"]);
150
- const _b = useSharedCall(rest), { call } = _b, state = __rest(_b, ["call"]);
150
+ const _b = useSharedCall(rest), { call, requestKey } = _b, state = __rest(_b, ["call", "requestKey"]);
151
151
  const intervalId = React.useRef();
152
152
  React.useEffect(() => {
153
153
  var _a;
@@ -161,8 +161,8 @@ const actorHooks = (actorManager) => {
161
161
  (_a = rest.onSuccess) === null || _a === void 0 ? void 0 : _a.call(rest, (0, utils_1.createCompiledResult)(state.data));
162
162
  }
163
163
  return () => clearInterval(intervalId.current);
164
- }, [refetchInterval, refetchOnMount]);
165
- return Object.assign({ call, intervalId }, state);
164
+ }, [refetchInterval, refetchOnMount, requestKey]);
165
+ return Object.assign({ call, intervalId, requestKey }, state);
166
166
  };
167
167
  const useUpdateCall = useSharedCall;
168
168
  const useMethod = (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-reactor/react",
3
- "version": "1.11.2",
3
+ "version": "1.12.1",
4
4
  "description": "A React library for interacting with Internet Computer canisters",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "node": ">=10"
36
36
  },
37
37
  "dependencies": {
38
- "@ic-reactor/core": "^1.11.0",
38
+ "@ic-reactor/core": "^1.12.0",
39
39
  "zustand-utils": "^1.3"
40
40
  },
41
41
  "peerDependencies": {
@@ -47,5 +47,5 @@
47
47
  "react": ">=16.8",
48
48
  "zustand": "4.5"
49
49
  },
50
- "gitHead": "7b0b401b38e57ec67205a4c753b80fff333f0eb9"
50
+ "gitHead": "9118e38b6596835b6aef84e8e653d05454d031b7"
51
51
  }