Skip to content
Discussion options

You must be logged in to vote

if you cast it as an array of Column it works, like this:

import { useTable, Column } from "react-table";
...
 const columns = React.useMemo(
    () => [
      {
        Header: t("Customer"),
        accessor: "customer"
      },
      ....
    ] as Column<StatementData>[],
    [t]
  );

Can't tell you why tho :)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hkar19
Comment options

@csmattjohnston
Comment options

Answer selected by talgat-ruby
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2571 on August 03, 2020 19:05.