Skip to content

Commit 2bc3f8b

Browse files
committed
feat: enable preact table publishing
1 parent 114ea3b commit 2bc3f8b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/preact-table/src/useTable.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ export function useTable<
115115
}))
116116
})
117117
}, [
118-
tableOptions.columns, // re-render when columns change
119-
tableOptions.data, // re-render when data changes
120-
tableOptions.state, // sync react state to the table store
118+
table.options.columns, // re-render when columns change
119+
table.options.data, // re-render when data changes
120+
table.options.state, // sync preact state to the table store
121121
])
122122

123123
const state = useStore(table.store, selector)

scripts/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export const packages = [
2424
// name: '@tanstack/lit-table',
2525
// packageDir: 'packages/lit-table',
2626
// },
27-
// {
28-
// name: '@tanstack/preact-table',
29-
// packageDir: 'packages/preact-table',
30-
// },
27+
{
28+
name: '@tanstack/preact-table',
29+
packageDir: 'packages/preact-table',
30+
},
3131
{
3232
name: '@tanstack/react-table',
3333
packageDir: 'packages/react-table',

0 commit comments

Comments
 (0)