Skip to content

Documentation / @frak-labs/react-sdk / useGetMerchantInformation

Function: useGetMerchantInformation()

useGetMerchantInformation(args?): UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>

Defined in: react/src/hook/useGetMerchantInformation.ts:45

Hook that return a query helping to get the current merchant information

It's a `tanstack` wrapper around the `getMerchantInformation()` action

Parameters

args?

Optional config object with query for customizing the underlying `useQuery()`

cacheTime?

number

Time in ms to cache the result at the core SDK level. Default: 30_000 (30s). Set to 0 to disable.

query?

QueryOptions

Optional query options, see `useQuery()` for more infos

Returns

UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>

The query hook wrapping the getMerchantInformation() action The data result is a `GetMerchantInformationReturnType`

See