Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
|
bump |
|
Thanks for the PR -- @poteto do you have any context on TanStack? Reading through the linked issues, |
|
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
|
bump |
|
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
|
We plan to remove the health check script in favor of using ESLint to check the health of a codebase, so we don’t plan to land the change as-is. Instead, we’ve added a way to teach the compiler about incompatible libraries so that it can automatically skip compilation of code that uses them. We already include TanStack table in that list, which you can see here: https://github.com/facebook/react/blob/47664deb8e981ec0425731495be1c5826ce90956/compiler/packages/babel-plugin-react-compiler/src/HIR/DefaultModuleTypeProvider.ts#L71 We’re open to PRs that extend the list of unsupported libraries using the same approach, ie adding entries to that file. For more background on the new approach see #34027 |
|
@josephsavona thanks, here's a PR #34493 |
…ries (#34493) Replaces #31820. #34027 added a check for `@tanstack/react-table`, but not `@tanstack/react-virtual`. In our testing `@tanstack/react-virtual`'s `useVirtualizer` returns functions that cannot be memoized, [this is also documented in the community](TanStack/virtual#736 (comment)).
…ries (#34493) Replaces #31820. #34027 added a check for `@tanstack/react-table`, but not `@tanstack/react-virtual`. In our testing `@tanstack/react-virtual`'s `useVirtualizer` returns functions that cannot be memoized, [this is also documented in the community](TanStack/virtual#736 (comment)). DiffTrain build for [e12b0bd](e12b0bd)
…ries (#34493) Replaces #31820. #34027 added a check for `@tanstack/react-table`, but not `@tanstack/react-virtual`. In our testing `@tanstack/react-virtual`'s `useVirtualizer` returns functions that cannot be memoized, [this is also documented in the community](TanStack/virtual#736 (comment)). DiffTrain build for [e12b0bd](e12b0bd)
Known architectural limitation of @tanstack/react-virtual: the hook returns a mutable ref-backed object that the React Compiler cannot memoize. The library is on React's explicit incompatible list (react/react#31820). The compiler already skips these components; the suppress just silences the noise.
PR Review Summary
Issues: Critical: 0 | Warning: 0 | Info: 1 |
Known architectural limitation of @tanstack/react-virtual: the hook returns a mutable ref-backed object that the React Compiler cannot memoize. The library is on React's explicit incompatible list (react/react#31820). The compiler already skips these components; the suppress just silences the noise.
Summary
In our testing with the compiler the
@tanstack/react-tableand@tanstack/react-virtualboth needuse no memodirectives to avoid breakage.It seems to be a known issue:
It can save someone quite some time of debugging if the health check can flag these :)