Skip to content

Commit

Permalink
fix: major performance bug in Vue-adapter (#5698)
Browse files Browse the repository at this point in the history
* fix: major performance bug

* fix: export options-type with reactive data
  • Loading branch information
OlaAlsaker authored Aug 9, 2024
1 parent 836cbb7 commit fb2d72f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/vue-table/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { mergeProxy } from './merge-proxy'

export * from '@tanstack/table-core'

type TableOptionsWithReactiveData<TData extends RowData> = Omit<
export type TableOptionsWithReactiveData<TData extends RowData> = Omit<
TableOptions<TData>,
'data'
> & {
Expand Down Expand Up @@ -52,12 +52,6 @@ export function useVueTable<TData extends RowData>(
state: {}, // Dummy state
onStateChange: () => {}, // noop
renderFallbackValue: null,
mergeOptions(
defaultOptions: TableOptions<TData>,
options: TableOptions<TData>
) {
return mergeProxy(defaultOptions, options)
},
},
getOptionsWithReactiveData(initialOptions)
)
Expand Down

0 comments on commit fb2d72f

Please sign in to comment.