1: Don't forget to either wrap columns inside useMemo or define columns outside the component.
This means that every option you pass to useTable should be memoized either via React.useMemo (for objects) or React.useCallback (for functions).
2:
For me, I had forgotten to include an empty array argument (or a dependency array) in the useMemo call. Without this, useMemo is seemingly useless.
github issue link: https://github.com/TanStack/react-table/issues/2369