Skip to content

Commit 17ed9cd

Browse files
committed
chore(webapp): scope unsupported React Compiler diagnostics
1 parent 43cca67 commit 17ed9cd

7 files changed

Lines changed: 7 additions & 0 deletions

File tree

apps/webapp/app/components/code/TSQLResultsTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ function ColumnResizeHandle({ header }: { header: Header<RowData, unknown> }) {
10641064
}
10651065
/* oxlint-enable jsx-a11y/no-static-element-interactions */
10661066

1067+
// oxlint-disable-next-line react/react-compiler -- TanStack Table is not compatible with compiler memoization.
10671068
export const TSQLResultsTable = memo(function TSQLResultsTable({
10681069
rows,
10691070
columns,

apps/webapp/app/components/primitives/InputNumberStepper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type InputNumberStepperProps = Omit<JSX.IntrinsicElements["input"], "min" | "max
1010
controlSize?: "base" | "large";
1111
};
1212

13+
// oxlint-disable-next-line react/react-compiler -- The compiler cannot currently rewrite these hoisted function references.
1314
export function InputNumberStepper({
1415
value,
1516
onChange,

apps/webapp/app/components/primitives/TreeView/TreeView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export type UseTreeStateOutput = {
193193
scrollToNode: (id: string) => void;
194194
};
195195

196+
// oxlint-disable-next-line react/react-compiler -- TanStack Virtual is not compatible with compiler memoization.
196197
export function useTree<TData, TFilterValue>({
197198
tree,
198199
selectedId,

apps/webapp/app/components/scheduled/timezones.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useVirtualizer } from "@tanstack/react-virtual";
22
import { useRef } from "react";
33
import { SelectItem } from "../primitives/Select";
44

5+
// oxlint-disable-next-line react/react-compiler -- TanStack Virtual is not compatible with compiler memoization.
56
export function TimezoneList({ timezones }: { timezones: string[] }) {
67
const parentRef = useRef<HTMLDivElement>(null);
78

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables/route.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ function EnvironmentVariableTableRow({
743743
);
744744
}
745745

746+
// oxlint-disable-next-line react/react-compiler -- TanStack Virtual is not compatible with compiler memoization.
746747
function EnvironmentVariablesVirtualTableBody({
747748
groupedEnvironmentVariables,
748749
scrollRef,

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.sessions.$sessionParam/route.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ const ROW_NUMBER_COL_MIN_CH = 3;
264264
const TIME_COL_WIDTH = "7rem";
265265
const TYPE_COL_WIDTH = "5rem";
266266

267+
// oxlint-disable-next-line react/react-compiler -- TanStack Virtual is not compatible with compiler memoization.
267268
function RawConversationView({
268269
inResourcePath,
269270
outResourcePath,

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.streams.$streamKey/route.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
105105
);
106106
};
107107

108+
// oxlint-disable-next-line react/react-compiler -- TanStack Virtual is not compatible with compiler memoization.
108109
export function RealtimeStreamViewer({
109110
runId,
110111
streamKey,

0 commit comments

Comments
 (0)