Skip to content

Error in column sizing via ag-grid sometimes preventing all columns from displaying #11

@paddymul

Description

@paddymul

currently the code in DFVIewer.tsx depends on a dumb timeout. This should probably run after an onGridReady event... but that also didn't work on the initial build.

        const timer = setTimeout(() => {
            gridRef.current!.columnApi.autoSizeAllColumns();
        }, 150);
        return () => clearTimeout(timer);
    }, [gridRef]);

this code ocassionaly throws an error of
v.current is null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions