Skip to content

Commit

Permalink
Merge pull request #92 from windingtree/develop
Browse files Browse the repository at this point in the history
fix: 🐛 Fixed hooks export in the sdk-react module
  • Loading branch information
kostysh authored Feb 14, 2024
2 parents 53cd39d + 17d6f0f commit 09a03ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/manager/src/components/Deals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
1 change: 1 addition & 0 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 09a03ff

Please sign in to comment.