UNPKG
@saleor/sdk
Version:
latest (0.7.0)
next (0.5.1-1)
0.7.0
0.6.0
0.5.1-1
0.5.1-0
0.5.0
0.4.6
0.4.6-0
0.4.5
0.4.5-0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.4.0-7
0.4.0-6
0.4.0-5
0.4.0-4
0.4.0-3
0.4.0-2
0.4.0-1
0.4.0-0
0.3.0-10
0.3.0-9
0.3.0-8
0.3.0-7
0.3.0-6
0.3.0-5
0.3.0-4
0.3.0-3
0.3.0-2
0.3.0-1
0.3.0-0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.1.0-7
0.1.0-6
0.1.0-5
0.1.0-4
0.1.0-3
0.1.0-0
0.0.1
Saleor TS SDK
saleor.io
mirumee/saleor-sdk
@saleor/sdk
/
src
/
react
/
hooks
/
saleorConfig.ts
9 lines
(7 loc)
•
210 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{ hookFactory } from
"../helpers/hookFactory"
;
/** * React hook to get client's config methods * * @returns Saleor's client's config methods */
export
const
useSaleorConfig =
hookFactory
(
"config"
);