Why does table reference not change, when data passed to useReactTable changes?
Because the
table is constantly the same reference, it's impossible to pass it down to other memoized subcomponents. They never rerender, because table didn't change.Same applies if data is the same, but row selections are changed.
What's the reason behind this behaviour?
What's the correct approach to use this lib without packing everything into one huge single component?