@ic-reactor/react 1.5.5-beta.0 → 1.5.5-beta.2

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.
@@ -24,4 +24,4 @@ export interface UseCandidAdapterParams {
24
24
  * }
25
25
  *```
26
26
  */
27
- export declare const useCandidAdapter: (config: UseCandidAdapterParams) => CandidAdapter | undefined;
27
+ export declare const useCandidAdapter: (config?: UseCandidAdapterParams) => CandidAdapter | undefined;
@@ -26,7 +26,7 @@ const useAgent_1 = require("./useAgent");
26
26
  * }
27
27
  *```
28
28
  */
29
- const useCandidAdapter = (config) => {
29
+ const useCandidAdapter = (config = {}) => {
30
30
  const [candidAdapter, setCandidAdapter] = (0, react_1.useState)();
31
31
  const agent = (0, useAgent_1.useAgent)();
32
32
  (0, react_1.useEffect)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-reactor/react",
3
- "version": "1.5.5-beta.0",
3
+ "version": "1.5.5-beta.2",
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.5.4-beta.0",
38
+ "@ic-reactor/core": "^1.5.4-beta.2",
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": "dfc8ce03a6a0f8aadf28bba2b21c70729278b5fd"
50
+ "gitHead": "bf632e49a5a4d1128531a6fc50b5c2f97dee58c9"
51
51
  }