React Compiler: never memo Tanstack Table

This commit is contained in:
gbuomprisco
2024-10-28 12:14:53 +08:00
parent 74c4f3cc85
commit b47151fb3c
2 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,9 @@ export function DataTable<TData, TValue>({
columns,
data,
}: DataTableProps<TData, TValue>) {
// TODO: remove when https://github.com/TanStack/table/issues/5567 gets fixed
'use no memo';
const table = useReactTable({
data,
columns,

View File

@@ -5,7 +5,7 @@ import { cn } from '../lib/utils';
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
({ className, type = 'text', ...props }, ref) => {
return (
<input
type={type}