Skip to content

Commit 64508f0

Browse files
authored
chore: Update OCK Identity hooks with TanStack support (#2021)
1 parent de1b2d1 commit 64508f0

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

apps/base-docs/docs/pages/builderkits/onchainkit/identity/use-address.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The `useAddress` hook is used to get an address from an onchain identity provider for a given name.
44

5+
It is implemented with [useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) from `@tanstack/react-query`, and returns a `UseQueryResult` object, allowing you to pass through all `@tanstack/react-query` options.
6+
57
## Usage
68

79
```tsx twoslash

apps/base-docs/docs/pages/builderkits/onchainkit/identity/use-avatar.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
The `useAvatar` hook is used to get avatar image url from an onchain identity
44
provider for a given name.
55

6+
It is implemented with [useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) from `@tanstack/react-query`, and returns a `UseQueryResult` object, allowing you to pass through all `@tanstack/react-query` options.
7+
68
## Usage
79

810
```tsx twoslash

apps/base-docs/docs/pages/builderkits/onchainkit/identity/use-avatars.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
The `useAvatars` hook is used to get multiple avatar image URLs from an onchain identity
44
provider for an array of ENS names or Basenames in a single batch request.
55

6+
It is implemented with [useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) from `@tanstack/react-query`, and returns a `UseQueryResult` object, allowing you to pass through all `@tanstack/react-query` options.
7+
68
## Usage
79

810
Get avatars for multiple ENS names:

apps/base-docs/docs/pages/builderkits/onchainkit/identity/use-name.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
The `useName` hook is used to get name from an onchain identity provider
44
for a given address.
55

6+
It is implemented with [useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) from `@tanstack/react-query`, and returns a `UseQueryResult` object, allowing you to pass through all `@tanstack/react-query` options.
7+
68
## Usage
79

810
Get ENS name from an address:

apps/base-docs/docs/pages/builderkits/onchainkit/identity/use-names.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
The `useNames` hook is used to get multiple names from an onchain identity provider
44
for an array of addresses in a single batch request.
55

6+
It is implemented with [useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) from `@tanstack/react-query`, and returns a `UseQueryResult` object, allowing you to pass through all `@tanstack/react-query` options.
7+
68
## Usage
79

810
Get ENS names from multiple addresses:

0 commit comments

Comments
 (0)