Skip to content

Commit

Permalink
Remove abstractClient in module client query key
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Jul 1, 2024
1 parent 22b280d commit d58dc89
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 21 deletions.
8 changes: 8 additions & 0 deletions examples/wagemos-cosmoskit-nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# wagemos-cosmoskit-nextjs

## 0.3.24

### Patch Changes

- Updated dependencies []:
- @abstract-money/react@1.3.11
- @abstract-money/provider-cosmoskit@5.0.11

## 0.3.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/wagemos-cosmoskit-nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wagemos-cosmoskit-nextjs",
"version": "0.3.23",
"version": "0.3.24",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
8 changes: 8 additions & 0 deletions examples/wagemos-graz-nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# wagemos-graz-nextjs

## 0.3.24

### Patch Changes

- Updated dependencies []:
- @abstract-money/react@1.3.11
- @abstract-money/provider-graz@5.0.11

## 0.3.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/wagemos-graz-nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wagemos-graz-nextjs",
"version": "0.3.23",
"version": "0.3.24",
"private": true,
"scripts": {
"dev": "NODE_OPTIONS='--inspect' next dev",
Expand Down
7 changes: 7 additions & 0 deletions packages/provider-cosmoskit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @abstract-money/provider-cosmoskit

## 5.0.11

### Patch Changes

- Updated dependencies []:
- @abstract-money/react@1.3.11

## 5.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/provider-cosmoskit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abstract-money/provider-cosmoskit",
"version": "5.0.10",
"version": "5.0.11",
"description": "Provider for CosmosKit",
"homepage": "https://github.com/AbstractSDK/abstract.js#readme",
"author": "dalechyn <vlad@abstract.money>",
Expand Down
7 changes: 7 additions & 0 deletions packages/provider-graz/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @abstract-money/provider-graz

## 5.0.11

### Patch Changes

- Updated dependencies []:
- @abstract-money/react@1.3.11

## 5.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/provider-graz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abstract-money/provider-graz",
"version": "5.0.10",
"version": "5.0.11",
"description": "Provider for Graz",
"homepage": "https://github.com/AbstractSDK/abstract.js#readme",
"author": "dalechyn <vlad@abstract.money>",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @abstract-money/react

## 1.3.11

### Patch Changes

- Remove abstractclient from query key in module client request

## 1.3.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abstract-money/react",
"version": "1.3.10",
"version": "1.3.11",
"description": "React Hooks for Abstract SDK",
"homepage": "https://github.com/AbstractSDK/abstract.js#readme",
"author": "dalechyn <vlad@abstract.money>",
Expand Down
19 changes: 3 additions & 16 deletions packages/react/src/utils/use-abstract-module-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ export type UseAbstractModuleClientParameters<
InstanceType<TModule> | undefined,
unknown,
InstanceType<TModule> | undefined,
readonly [
'module-mutation-client',
string,
AccountId | undefined,
TModule,
AbstractClient | undefined,
]
readonly ['module-mutation-client', string, AccountId | undefined, TModule]
>
sender?: string | undefined
}
Expand All @@ -90,15 +84,8 @@ export function useAbstractModuleClient<
})

const queryKey = React.useMemo(
() =>
[
'module-mutation-client',
moduleId,
accountId,
Module,
abstractClient,
] as const,
[moduleId, accountId, abstractClient, Module],
() => ['module-mutation-client', moduleId, accountId, Module] as const,
[moduleId, accountId, Module],
)

const queryFn = React.useCallback(() => {
Expand Down

0 comments on commit d58dc89

Please sign in to comment.