Skip to content

Commit 4e4a8d9

Browse files
refactor(react): promote future API to default entry point (#698)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c0d9330 commit 4e4a8d9

93 files changed

Lines changed: 85 additions & 785 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 35 additions & 19 deletions

demo/src/activities/Article/Article.content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
content,
33
useActivityParams,
44
useLoaderData,
5-
} from "@stackflow/react/future";
5+
} from "@stackflow/react";
66
import { LazyLoadImage } from "react-lazy-load-image-component";
77
import ArticleCard from "../../components/ArticleCard";
88
import ArticleProfile from "../../components/ArticleProfile";

demo/src/activities/Article/Article.layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { layout } from "@stackflow/react/future";
1+
import { layout } from "@stackflow/react";
22
import Layout from "../../components/Layout";
33

44
const ArticleLayout = layout<"Article">(({ params: { title }, children }) => {

demo/src/activities/Article/Article.loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { loading } from "@stackflow/react/future";
1+
import { loading } from "@stackflow/react";
22
import LoadingSpinner from "../../components/LoadingSpinner";
33

44
import * as css from "./Article.loading.css";

demo/src/activities/Article/Article.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { structuredActivityComponent } from "@stackflow/react/future";
1+
import { structuredActivityComponent } from "@stackflow/react";
22
import ArticleLayout from "./Article.layout";
33
import ArticleLoading from "./Article.loading";
44

demo/src/activities/Main/Main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ActivityComponentType } from "@stackflow/react/future";
2-
import { useLoaderData } from "@stackflow/react/future";
1+
import type { ActivityComponentType } from "@stackflow/react";
2+
import { useLoaderData } from "@stackflow/react";
33

44
import IconBell from "../../assets/IconBell";
55
import IconExpandMore from "../../assets/IconExpandMore";

demo/src/components/FeedCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useFlow } from "@stackflow/react/future";
1+
import { useFlow } from "@stackflow/react";
22
import { LazyLoadImage } from "react-lazy-load-image-component";
33
import * as css from "./FeedCard.css";
44

demo/src/stackflow/Stack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { vars } from "@seed-design/design-token";
22
import { basicUIPlugin } from "@stackflow/plugin-basic-ui";
33
import { historySyncPlugin } from "@stackflow/plugin-history-sync";
44
import { basicRendererPlugin } from "@stackflow/plugin-renderer-basic";
5-
import { stackflow } from "@stackflow/react/future";
5+
import { stackflow } from "@stackflow/react";
66
import { Article } from "../activities/Article/Article";
77
import Main from "../activities/Main/Main";
88
import { config } from "./stackflow.config";

demo/src/stackflow/stackflow.docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { vars } from "@seed-design/design-token";
22
import { basicUIPlugin } from "@stackflow/plugin-basic-ui";
33
import { basicRendererPlugin } from "@stackflow/plugin-renderer-basic";
4-
import { stackflow } from "@stackflow/react/future";
4+
import { stackflow } from "@stackflow/react";
55
import { Article } from "../activities/Article/Article";
66
import Main from "../activities/Main/Main";
77
import { config } from "./stackflow.config";

extensions/link/src/future/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
RegisteredActivityName,
66
} from "@stackflow/config";
77
import type { Route } from "@stackflow/plugin-history-sync";
8-
import { useConfig, useFlow } from "@stackflow/react/future";
8+
import { useConfig, useFlow } from "@stackflow/react";
99
import { useMemo } from "react";
1010
import { omit } from "./omit";
1111

0 commit comments

Comments
 (0)