@phantom/react-native-sdk 0.1.3 → 0.1.4

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.js CHANGED
@@ -483,15 +483,26 @@ function PhantomProvider({ children, config }) {
483
483
  (0, import_react.useEffect)(() => {
484
484
  updateConnectionState();
485
485
  }, [updateConnectionState]);
486
- const value = {
487
- sdk,
488
- isConnected,
489
- addresses,
490
- walletId,
491
- error,
492
- updateConnectionState,
493
- setWalletId
494
- };
486
+ const value = (0, import_react.useMemo)(
487
+ () => ({
488
+ sdk,
489
+ isConnected,
490
+ addresses,
491
+ walletId,
492
+ error,
493
+ updateConnectionState,
494
+ setWalletId
495
+ }),
496
+ [
497
+ sdk,
498
+ isConnected,
499
+ addresses,
500
+ walletId,
501
+ error,
502
+ updateConnectionState,
503
+ setWalletId
504
+ ]
505
+ );
495
506
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PhantomContext.Provider, { value, children });
496
507
  }
497
508
  function usePhantom() {
package/dist/index.mjs CHANGED
@@ -439,15 +439,26 @@ function PhantomProvider({ children, config }) {
439
439
  useEffect(() => {
440
440
  updateConnectionState();
441
441
  }, [updateConnectionState]);
442
- const value = {
443
- sdk,
444
- isConnected,
445
- addresses,
446
- walletId,
447
- error,
448
- updateConnectionState,
449
- setWalletId
450
- };
442
+ const value = useMemo(
443
+ () => ({
444
+ sdk,
445
+ isConnected,
446
+ addresses,
447
+ walletId,
448
+ error,
449
+ updateConnectionState,
450
+ setWalletId
451
+ }),
452
+ [
453
+ sdk,
454
+ isConnected,
455
+ addresses,
456
+ walletId,
457
+ error,
458
+ updateConnectionState,
459
+ setWalletId
460
+ ]
461
+ );
451
462
  return /* @__PURE__ */ jsx(PhantomContext.Provider, { value, children });
452
463
  }
453
464
  function usePhantom() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phantom/react-native-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Phantom Wallet SDK for React Native and Expo applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -45,13 +45,13 @@
45
45
  "directory": "packages/react-native-sdk"
46
46
  },
47
47
  "dependencies": {
48
- "@phantom/api-key-stamper": "^0.1.4",
48
+ "@phantom/api-key-stamper": "^0.1.5",
49
49
  "@phantom/base64url": "^0.1.0",
50
- "@phantom/client": "^0.1.7",
51
- "@phantom/constants": "^0.0.2",
50
+ "@phantom/client": "^0.1.8",
51
+ "@phantom/constants": "^0.0.3",
52
52
  "@phantom/crypto": "^0.1.2",
53
- "@phantom/embedded-provider-core": "^0.1.4",
54
- "@phantom/sdk-types": "^0.1.3",
53
+ "@phantom/embedded-provider-core": "^0.1.5",
54
+ "@phantom/sdk-types": "^0.1.4",
55
55
  "@types/bs58": "^5.0.0",
56
56
  "bs58": "^6.0.0",
57
57
  "buffer": "^6.0.3"