table icon indicating copy to clipboard operation
table copied to clipboard

Can react-table v7 be safely used with React 19?

Open sureshsumtotal opened this issue 7 months ago • 4 comments

TanStack Table version

v7

Framework/Library version

React v19

Describe the bug and the steps to reproduce it

Hi Team,

I’m currently maintaining a project that uses react-table@7, and we're planning to upgrade our application to React 19.

I noticed that react-table@7 has a peerDependency that supports React versions up to 18: "peerDependencies": { "react": "^16.8.3 || ^17.0.0-0 || ^18.0.0" }

Are there any known issues or incompatibilities when using react-table@7 with React 19?

Has there been any testing or validation of v7 with React 19 features like strict mode, concurrent rendering, or updated hooks behavior?

Is the team planning to update the peer dependencies or provide an official stance on React 19 support for v7?

Thanks, Suresh

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

..

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • [x] I agree to follow this project's Code of Conduct
  • [x] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

sureshsumtotal avatar May 21 '25 06:05 sureshsumtotal

Same here, would appreciate a patch with peerDeps update in v7. Not eager to look into v8 update right now

maksnester avatar Jun 23 '25 12:06 maksnester

Afaik the only potentially troublesome part would be the compiler, which the new eslint hooks plugin flags:

Image

If I understand correctly the way around this is to use the pragma "use no memo", but the issue where I got it is old, so not sure how up to date that is (last message was in May, the issue was locked to contributors): #5567

So you should be good if you don't use the compiler, or if you opt out the files where you use the table hook with "use no memo", and will have to ignore the warning after you opt out the file, I hope an update on this situation lands faster.

luchillo17 avatar Oct 14 '25 22:10 luchillo17

Any update on this? I am getting the same warning

altanbgn avatar Oct 30 '25 01:10 altanbgn

Any update? Same question.

sawa-ko avatar Nov 07 '25 23:11 sawa-ko