diff --git a/apps/www/src/lib/registry/default/example/DataTableReactiveDemo.vue b/apps/www/src/lib/registry/default/example/DataTableReactiveDemo.vue index 25e48381..b89847dc 100644 --- a/apps/www/src/lib/registry/default/example/DataTableReactiveDemo.vue +++ b/apps/www/src/lib/registry/default/example/DataTableReactiveDemo.vue @@ -17,7 +17,7 @@ import { } from '@tanstack/vue-table' import { ArrowUpDown, ChevronDown } from 'lucide-vue-next' -import { h, ref } from 'vue' +import { h, ref, shallowRef } from 'vue' import DropdownAction from './DataTableDemoColumn.vue' import { Button } from '@/lib/registry/default/ui/button' import { Checkbox } from '@/lib/registry/default/ui/checkbox' @@ -45,7 +45,7 @@ export interface Payment { email: string } -const data = ref([ +const data = shallowRef([ { id: 'm5gr84i9', amount: 316, diff --git a/apps/www/src/lib/registry/new-york/example/DataTableReactiveDemo.vue b/apps/www/src/lib/registry/new-york/example/DataTableReactiveDemo.vue index 8dd21a81..7c515105 100644 --- a/apps/www/src/lib/registry/new-york/example/DataTableReactiveDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/DataTableReactiveDemo.vue @@ -17,7 +17,7 @@ import { } from '@tanstack/vue-table' import { ArrowUpDown, ChevronDown } from 'lucide-vue-next' -import { h, ref } from 'vue' +import { h, ref, shallowRef } from 'vue' import DropdownAction from './DataTableDemoColumn.vue' import { Button } from '@/lib/registry/new-york/ui/button' import { Checkbox } from '@/lib/registry/new-york/ui/checkbox' @@ -45,7 +45,7 @@ export interface Payment { email: string } -const data = ref([ +const data = shallowRef([ { id: 'm5gr84i9', amount: 316,