@vela-ventures/aosync-sdk-react 1.0.19 → 1.0.22

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.
@@ -13,8 +13,9 @@ import Arweave from "arweave";
13
13
  import WalletClient from "@vela-ventures/ao-sync-sdk";
14
14
  export const AOSyncContext = createContext(undefined);
15
15
  export function AOSyncProvider({ gatewayConfig = { host: "arweave.net", port: 443, protocol: "https" }, muUrl = "https://mu.ao-testnet.xyz", children, appInfo, }) {
16
+ var _a;
16
17
  const walletRef = useRef(new WalletClient());
17
- const [isConnected, setIsConnected] = useState(!!sessionStorage.getItem("aosync-topic-id"));
18
+ const [isConnected, setIsConnected] = useState(!!((_a = walletRef === null || walletRef === void 0 ? void 0 : walletRef.current) === null || _a === void 0 ? void 0 : _a.uid));
18
19
  useEffect(() => {
19
20
  const wallet = walletRef.current;
20
21
  wallet.reconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vela-ventures/aosync-sdk-react",
3
- "version": "1.0.19",
3
+ "version": "1.0.22",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -65,6 +65,6 @@
65
65
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
66
66
  },
67
67
  "dependencies": {
68
- "@vela-ventures/ao-sync-sdk": "^1.1.19"
68
+ "@vela-ventures/ao-sync-sdk": "^1.1.22"
69
69
  }
70
70
  }