Skip to content

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.

Fix storybook's missing requestClientAtom dependency (#6208)

Max Koretskyi586619410baa
diff --git a/frontend/src/stories/cell.stories.tsx b/frontend/src/stories/cell.stories.tsx
index a420b3f9ef..b1eeed2d59 100644
--- a/frontend/src/stories/cell.stories.tsx
+++ b/frontend/src/stories/cell.stories.tsx
@@ -1,4 +1,5 @@
/* Copyright 2024 Marimo. All rights reserved. */
+
import type { Meta, StoryObj } from "@storybook/react-vite";
import { createStore, Provider } from "jotai";
import { createRef } from "react";
@@ -9,6 +10,8 @@ import {
} from "@/core/cells/types";
import { defaultUserConfig } from "@/core/config/config-schema";
import { connectionAtom } from "@/core/network/connection";
+import { requestClientAtom } from "@/core/network/requests";
+import { resolveRequestClient } from "@/core/network/resolve.ts";
import type { CellConfig } from "@/core/network/types";
import { WebSocketState } from "@/core/websocket/types";
import { MultiColumn } from "@/utils/id-tree";
@@ -78,6 +81,7 @@ const Cell: React.FC<{
const store = createStore();
store.set(notebookAtom, notebook);
store.set(connectionAtom, { state: WebSocketState.OPEN });
+ store.set(requestClientAtom, resolveRequestClient());
return (
<Provider store={store}>
<TooltipProvider>