Function: useTokens()
useTokens(
params
?: {query
:QueryOptions
<Token
[]>; }):UseQueryResult
<Token
[],Error
>
Parameters
Parameter | Type | Description |
---|---|---|
params ? | object | No required parameters. |
params.query ? | QueryOptions <Token []> | See Tanstack Query - useQuery options. |
Returns
UseQueryResult
<Token
[], Error
>
Example
const {
data,
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useTokens();