github refinedev/refine @pankod/refine-mui@3.37.0

Minor Changes

  • The useDataGrid hook required the columns property. Therefore, the queryResult could not be used in the columns. Now, we can define the columns property wherever we want since the useDataGrid hook does not take the column property.

    export const PostsList: React.FC = () => {
    -    const { dataGridProps } = useDataGrid<IPost>({
    -        columns,
    -    });
    +    const { dataGridProps } = useDataGrid<IPost>();
    
        return (
            <List>
    -            <DataGrid {...dataGridProps} autoHeight />
    +            <DataGrid {...dataGridProps} columns={columns} autoHeight />
            </List>
        );
    };

Don't miss a new refine release

NewReleases is sending notifications on new releases.