-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
This is a documentation issue
At the document tutorial here
The code diff area display is miss some line, it suppose to be like this:
export function DataTable<TData, TValue>({
columns,
data,
}: DataTableProps<TData, TValue>) {
const [sorting, setSorting] = React.useState<SortingState>([])
const table = useReactTable({
data,
columns,
getCoreRowModel: getCoreRowModel(),
getPaginationRowModel: getPaginationRowModel(),
onSortingChange: setSorting,
getSortedRowModel: getSortedRowModel(),
state: {
sorting,
}, // Diff here this line also
})Affected component/components
table data
How to reproduce
https://ui.shadcn.com/docs/components/data-table#update-datatable-1
Codesandbox/StackBlitz link
No response
Logs
System Info
Any just document issue.Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
