github refinedev/refine @refinedev/react-table@5.6.9

Patch Changes

  • #5862 7c22b8eaca0 Thanks @aliemir! - fix: updated column filter transformation logic to handle conditional filters

    useTable hook was ignoring the conditional filters with "and" and "or" operators, causing custom filtering logic inside the table to not work as expected and omitting the filters from the query. This PR enables working with conditionenal filters and fixes the disappearing filters issue.

    To customize the key value of the conditional filter, you can use the filterKey property in the column's meta property. This property will be used as the key for the filter when setting the filter value to the table from @refinedev/core's filter state and when setting the filter value to the filter state from the table.

    // An example of how to use the `filterKey` property in the column's `meta` property
    const columns: ColumnDef<IPost> = [
      {
        id: "title",
        header: "Title",
        accessorKey: "title",
        meta: {
          // This is optional, if not defined column id will be used as the key
          filterKey: "titleFilter",
          // If operator is not `'eq'` or `'in'`, make sure to set the `filterOperator` property
          filterOperator: "and",
        },
      },
    ];

    Resolves #5856

  • #5881 ba719f6ea26 Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions

Don't miss a new refine release

NewReleases is sending notifications on new releases.