docs(data-table): add info about ref and shallowRef

This commit is contained in:
romanhrynevych 2024-08-31 10:26:27 +03:00
parent 83b9bc2027
commit 92801dce1c

View File

@ -65,6 +65,8 @@ Relative PR: [Tanstack/table #5687](https://github.com/TanStack/table/pull/5687#
If you want to mutate `props.data`, you should use [`defineModel`](https://vuejs.org/api/sfc-script-setup.html#definemodel).
There is no difference between using `ref` or `shallowRef` for your data object; it will be automatically mutated by the TanStack Table to `shallowRef`.
<ComponentPreview name="DataTableReactiveDemo" />
## Prerequisites