From 9de21dbb652ec7334911a3d7bf655cf3b8f61d49 Mon Sep 17 00:00:00 2001 From: Jordan Lawrence Date: Thu, 28 Nov 2024 02:36:55 +0000 Subject: [PATCH] fix: opt-out @tanstack/react-virtual from React Compiler --- .../sanity/src/core/releases/tool/components/Table/Table.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/sanity/src/core/releases/tool/components/Table/Table.tsx b/packages/sanity/src/core/releases/tool/components/Table/Table.tsx index 8fb12e55293..6e8a5ef9bf1 100644 --- a/packages/sanity/src/core/releases/tool/components/Table/Table.tsx +++ b/packages/sanity/src/core/releases/tool/components/Table/Table.tsx @@ -1,3 +1,6 @@ +'use no memo' +// The `use no memo` directive is due to a known issue with react-virtual and react compiler: https://github.com/TanStack/virtual/issues/736 + import {Box, Card, type CardProps, Flex, rem, Stack, Text, useTheme} from '@sanity/ui' import { defaultRangeExtractor,