A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: table memoization edge case with React compiler (#2791)
Myles Scolnick03fbd5a09add
diff --git a/frontend/src/components/data-table/TableActions.tsx b/frontend/src/components/data-table/TableActions.tsxindex 4cbaf99b0c..c684e63b3a 100644--- a/frontend/src/components/data-table/TableActions.tsx+++ b/frontend/src/components/data-table/TableActions.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import React from "react";import { Tooltip } from "../ui/tooltip";import { Button } from "../ui/button";diff --git a/frontend/src/components/data-table/column-formatting/feature.ts b/frontend/src/components/data-table/column-formatting/feature.tsindex ae0680a913..e99130dbbb 100644--- a/frontend/src/components/data-table/column-formatting/feature.ts+++ b/frontend/src/components/data-table/column-formatting/feature.ts@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import {type TableFeature,type RowData,diff --git a/frontend/src/components/data-table/column-header.tsx b/frontend/src/components/data-table/column-header.tsxindex 495e27d04b..84909d4798 100644--- a/frontend/src/components/data-table/column-header.tsx+++ b/frontend/src/components/data-table/column-header.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import type { Column } from "@tanstack/react-table";import {ChevronsUpDown,diff --git a/frontend/src/components/data-table/columns.tsx b/frontend/src/components/data-table/columns.tsxindex 736e6cd00c..c9aaa93425 100644--- a/frontend/src/components/data-table/columns.tsx+++ b/frontend/src/components/data-table/columns.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import type { ColumnDef } from "@tanstack/react-table";import {DataTableColumnHeader,diff --git a/frontend/src/components/data-table/filter-pills.tsx b/frontend/src/components/data-table/filter-pills.tsxindex 206bd551c8..82330a656c 100644--- a/frontend/src/components/data-table/filter-pills.tsx+++ b/frontend/src/components/data-table/filter-pills.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import type {ColumnFilter,ColumnFiltersState,diff --git a/frontend/src/components/data-table/filters.ts b/frontend/src/components/data-table/filters.tsindex cd8ea6a735..14b422212f 100644--- a/frontend/src/components/data-table/filters.ts+++ b/frontend/src/components/data-table/filters.ts@@ -1,4 +1,5 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";import type { DataType } from "@/core/kernel/messages";import type { ConditionType } from "@/plugins/impl/data-frames/schema";diff --git a/frontend/src/components/data-table/hooks/useColumnPinning.ts b/frontend/src/components/data-table/hooks/useColumnPinning.tsindex 175d5f64ff..1df25f6423 100644--- a/frontend/src/components/data-table/hooks/useColumnPinning.ts+++ b/frontend/src/components/data-table/hooks/useColumnPinning.ts@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import React from "react";import { SELECT_COLUMN_ID } from "../types";import type { ColumnPinningState } from "@tanstack/react-table";diff --git a/frontend/src/components/data-table/pagination.tsx b/frontend/src/components/data-table/pagination.tsxindex 7ea7c2e609..bd25b90edb 100644--- a/frontend/src/components/data-table/pagination.tsx+++ b/frontend/src/components/data-table/pagination.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import type { Table } from "@tanstack/react-table";import {ChevronLeft,diff --git a/frontend/src/components/data-table/renderers.tsx b/frontend/src/components/data-table/renderers.tsxindex c1178d6866..2c13885b90 100644--- a/frontend/src/components/data-table/renderers.tsx+++ b/frontend/src/components/data-table/renderers.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import {TableHeader,TableHead,diff --git a/frontend/src/components/variables/variables-table.tsx b/frontend/src/components/variables/variables-table.tsxindex ae1bc1d289..6d9295e2c2 100644--- a/frontend/src/components/variables/variables-table.tsx+++ b/frontend/src/components/variables/variables-table.tsx@@ -1,4 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */+"use no memo";+import React, { memo, useMemo } from "react";import {TableHeader,diff --git a/frontend/src/utils/createReducer.ts b/frontend/src/utils/createReducer.tsindex 1807ce4783..74f678653c 100644--- a/frontend/src/utils/createReducer.ts+++ b/frontend/src/utils/createReducer.ts@@ -1,10 +1,11 @@/* Copyright 2024 Marimo. All rights reserved. *//* eslint-disable @typescript-eslint/no-explicit-any */import { Logger } from "@/utils/Logger";-import type { NoInfer } from "@tanstack/react-table";import { atom, useSetAtom } from "jotai";import type { Reducer } from "react";+export type NoInfer<T> = [T][T extends any ? 0 : never];+interface ReducerAction<T> {type: string;payload: T;