diff --git a/utils/gear-hooks/package.json b/utils/gear-hooks/package.json index f43930da0..8b9d3305f 100644 --- a/utils/gear-hooks/package.json +++ b/utils/gear-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@gear-js/react-hooks", - "version": "0.14.1", + "version": "0.14.2", "description": "React hooks used across Gear applications", "author": "Gear Technologies", "license": "GPL-3.0", diff --git a/utils/gear-hooks/src/hooks/sails/use-program.ts b/utils/gear-hooks/src/hooks/sails/use-program.ts index bd0dbd749..50bd0b176 100644 --- a/utils/gear-hooks/src/hooks/sails/use-program.ts +++ b/utils/gear-hooks/src/hooks/sails/use-program.ts @@ -30,7 +30,7 @@ function useProgram({ return useQuery({ ...query, - queryKey: ['program', id, api?.provider.endpoint], + queryKey: ['program', library.toString(), id, api?.provider.endpoint], queryFn: getProgram, enabled: isApiReady && Boolean(id) && (query?.enabled ?? true), }); diff --git a/utils/wallet-connect/package.json b/utils/wallet-connect/package.json index f50ed64cc..567efd617 100644 --- a/utils/wallet-connect/package.json +++ b/utils/wallet-connect/package.json @@ -1,6 +1,6 @@ { "name": "@gear-js/wallet-connect", - "version": "0.2.1", + "version": "0.2.2", "type": "module", "description": "React library to connect Substrate based wallets to Gear dApps", "author": "Gear Technologies", @@ -24,7 +24,7 @@ "preview": "vite preview" }, "peerDependencies": { - "@gear-js/react-hooks": "^0.14.1", + "@gear-js/react-hooks": "^0.14.2", "@gear-js/ui": "^0.5.28", "@gear-js/vara-ui": "^0.0.11" }, @@ -37,7 +37,7 @@ } }, "devDependencies": { - "@gear-js/react-hooks": "0.14.1", + "@gear-js/react-hooks": "0.14.2", "@gear-js/ui": "0.5.28", "@gear-js/vara-ui": "0.0.11", "@polkadot/react-identicon": "3.11.3", diff --git a/yarn.lock b/yarn.lock index c1398dc25..b9030b017 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2691,7 +2691,7 @@ __metadata: languageName: unknown linkType: soft -"@gear-js/react-hooks@0.14.1, @gear-js/react-hooks@workspace:^, @gear-js/react-hooks@workspace:utils/gear-hooks": +"@gear-js/react-hooks@0.14.2, @gear-js/react-hooks@workspace:^, @gear-js/react-hooks@workspace:utils/gear-hooks": version: 0.0.0-use.local resolution: "@gear-js/react-hooks@workspace:utils/gear-hooks" dependencies: @@ -2838,7 +2838,7 @@ __metadata: version: 0.0.0-use.local resolution: "@gear-js/wallet-connect@workspace:utils/wallet-connect" dependencies: - "@gear-js/react-hooks": 0.14.1 + "@gear-js/react-hooks": 0.14.2 "@gear-js/ui": 0.5.28 "@gear-js/vara-ui": 0.0.11 "@polkadot/react-identicon": 3.11.3 @@ -2859,7 +2859,7 @@ __metadata: vite-plugin-node-polyfills: 0.22.0 vite-plugin-svgr: 3.2.0 peerDependencies: - "@gear-js/react-hooks": ^0.14.1 + "@gear-js/react-hooks": ^0.14.2 "@gear-js/ui": ^0.5.28 "@gear-js/vara-ui": ^0.0.11 peerDependenciesMeta: