Skip to content

Commit 17d6f0f

Browse files
committed
fix: 🐛 Fixed hooks export in the sdk-react module
1 parent 2db274d commit 17d6f0f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/manager/src/components/Deals.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const Deals = () => {
3131
if (!node) {
3232
return;
3333
}
34-
const { records } = await node.deals.getAll.query({}) as PaginatedDealRecords;
34+
const { records } = (await node.deals.getAll.query(
35+
{},
36+
)) as PaginatedDealRecords;
3537
console.log('Deals:', records);
3638
setDeals(records);
3739
}, [node]);

packages/react/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default defineConfig({
1717
index: './src/index.ts',
1818
providers: './src/providers/index.ts',
1919
utils: './src/utils/index.ts',
20+
hooks: './src/hooks/index.ts',
2021
},
2122
name: '@windingtree/sdk-react',
2223
formats: ['es', 'cjs'],

0 commit comments

Comments
 (0)