import { useEffect } from 'react'; import { useDatabaseContext, useDatabaseViewId, useRowOrdersSelector } from '@/application/database-yjs'; import { useRenderFields } from '@/components/database/components/grid/grid-column'; import GridVirtualizer from '@/components/database/components/grid/grid-table/GridVirtualizer'; import { GridProvider } from '@/components/database/grid/GridProvider'; export function Grid() { const { fields } = useRenderFields(); const viewId = useDatabaseViewId(); const rows = useRowOrdersSelector(); const { onRendered } = useDatabaseContext(); useEffect(() => { if (fields && rows !== undefined) { onRendered?.(); } }, [fields, rows, onRendered]); return (
); } export default Grid;