From 17d6f0fad2dc8be2e0fc353df487224c5f1920ec Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Wed, 14 Feb 2024 20:56:01 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fixed=20hooks=20export=20?= =?UTF-8?q?in=20the=20sdk-react=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/manager/src/components/Deals.tsx | 4 +++- packages/react/vite.config.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/manager/src/components/Deals.tsx b/examples/manager/src/components/Deals.tsx index 11096cc7..4ca2ef7c 100644 --- a/examples/manager/src/components/Deals.tsx +++ b/examples/manager/src/components/Deals.tsx @@ -31,7 +31,9 @@ export const Deals = () => { if (!node) { return; } - const { records } = await node.deals.getAll.query({}) as PaginatedDealRecords; + const { records } = (await node.deals.getAll.query( + {}, + )) as PaginatedDealRecords; console.log('Deals:', records); setDeals(records); }, [node]); diff --git a/packages/react/vite.config.ts b/packages/react/vite.config.ts index 3711eab0..4c3e6733 100644 --- a/packages/react/vite.config.ts +++ b/packages/react/vite.config.ts @@ -17,6 +17,7 @@ export default defineConfig({ index: './src/index.ts', providers: './src/providers/index.ts', utils: './src/utils/index.ts', + hooks: './src/hooks/index.ts', }, name: '@windingtree/sdk-react', formats: ['es', 'cjs'],