chore(react/collections/table): fix occasional error when initializing

This commit is contained in:
Elian Doran
2025-09-09 19:49:57 +03:00
parent 32ce6e7a08
commit 33a37be378

View File

@@ -33,11 +33,13 @@ export default function Tabulator<T>({ className, columns, data, modules, tabula
columns,
data,
footerElement: (parentComponent && footerElement ? renderReactWidget(parentComponent, footerElement)[0] : undefined),
...restProps,
...restProps
});
tabulatorRef.current = tabulator;
externalTabulatorRef.current = tabulator;
tabulator.on("tableBuilt", () => {
tabulatorRef.current = tabulator;
externalTabulatorRef.current = tabulator;
});
return () => tabulator.destroy();
}, []);