diff --git a/examples/manager/src/components/Deals.tsx b/examples/manager/src/components/Deals.tsx index 11096cc..4ca2ef7 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 3711eab..4c3e673 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'],