material-react-table icon indicating copy to clipboard operation
material-react-table copied to clipboard

when using react-compiler, the global filter stops working

Open GersonDias opened this issue 1 year ago • 3 comments

material-react-table version

v3.1.0

react & react-dom versions

v19.0.0

react-compiler version

19.0.0-beta-63e3235-20250105

Describe the bug and the steps to reproduce it

using VITE + the react-compiler babel plugin makes the global filter stop working. The typing is buggy and the data is not filtered. In the sample sandbox, if you uncomment the "use no memo" directive, the filtering and the textbox works properly.

Minimal, Reproducible Example - (Optional, but Recommended)

https://codesandbox.io/p/devbox/kind-cookies-ffcyjr?file=%2Fsrc%2FApp.tsx

Screenshots or Videos (Optional)

No response

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

None

Terms

  • [X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

GersonDias avatar Jan 08 '25 17:01 GersonDias

probably related: https://github.com/TanStack/table/issues/5567

GersonDias avatar Jan 08 '25 17:01 GersonDias

TanStack Table itself is not compatible with the React compiler and might not plan to be for the foreseeable future.

KevinVandy avatar Jan 09 '25 01:01 KevinVandy

We've experienced this issue with Next 15.2.4, React 19.0.0 and MRT 3.2.1. For Next.js I found so far at least two possible workarounds:

pa4080 avatar Apr 09 '25 07:04 pa4080