table icon indicating copy to clipboard operation
table copied to clipboard

fix(react-table): fix improper state update on unmounted component

Open jmtoung opened this issue 11 months ago • 4 comments

This commit addresses https://github.com/TanStack/table/issues/5026/, where react-table is performing a state update on an unmounted component. To address this, we add a useEffect to track whether the component on which the table is referenced is mounted.

jmtoung avatar Jan 19 '25 23:01 jmtoung

I verified this fixes the console.error message React spits out during StrictMode in my local setup

jmtoung avatar Jan 19 '25 23:01 jmtoung

any updates on this pr?

alexander-densley avatar Jul 11 '25 23:07 alexander-densley

Would love a status update on this when possible 🙂

spencermarx avatar Aug 07 '25 13:08 spencermarx

@tannerlinsley would be lovely if this PR is accepted.

Lantianyou avatar Sep 06 '25 23:09 Lantianyou