Skip to content

Commit a5181c2

Browse files
Bump Activity docs to canary (#7974)
* correct IconExperimental naming and usage (from #7972) Co-authored-by: Tuna <[email protected]> * Bump Activity to Canary in docs --------- Co-authored-by: Tuna <[email protected]>
1 parent 0bfd418 commit a5181c2

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

next-env.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference types="next/navigation-types/compat/navigation" />
43

54
// NOTE: This file should not be edited
6-
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

src/components/Icon/IconExperimental.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {memo} from 'react';
66

77
export const IconExperimental = memo<
88
JSX.IntrinsicElements['svg'] & {title?: string; size?: 's' | 'md'}
9-
>(function IconCanary(
9+
>(function IconExperimental(
1010
{className, title, size} = {
1111
className: undefined,
1212
title: undefined,

src/components/MDX/MDXComponents.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {finishedTranslations} from 'utils/finishedTranslations';
3737

3838
import ErrorDecoder from './ErrorDecoder';
3939
import {IconCanary} from '../Icon/IconCanary';
40+
import {IconExperimental} from 'components/Icon/IconExperimental';
4041

4142
function CodeStep({children, step}: {children: any; step: number}) {
4243
return (
@@ -130,7 +131,7 @@ const ExperimentalBadge = ({title}: {title: string}) => (
130131
className={
131132
'text-base font-display px-1 py-0.5 font-bold bg-gray-10 dark:bg-gray-60 text-gray-60 dark:text-gray-10 rounded'
132133
}>
133-
<IconCanary
134+
<IconExperimental
134135
size="s"
135136
className={'inline me-1 mb-0.5 text-sm text-gray-60 dark:text-gray-10'}
136137
/>

src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11465,6 +11465,14 @@ _For more background on how we built View Transitions, see: [#31975](https://git
1146511465

1146611466
## Activity {/*activity*/}
1146711467

11468+
<Note>
11469+
11470+
**`<Activity />` is now available in React’s Canary channel.**
11471+
11472+
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
11473+
11474+
</Note>
11475+
1146811476
In [past](/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022#offscreen) [updates](/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024#offscreen-renamed-to-activity), we shared that we were researching an API to allow components to be visually hidden and deprioritized, preserving UI state with reduced performance costs relative to unmounting or hiding with CSS.
1146911477

1147011478
We're now ready to share the API and how it works, so you can start testing it in experimental React versions.

src/content/reference/react/Activity.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
---
22
title: <Activity>
3-
version: experimental
3+
version: canary
44
---
55

6-
<Experimental>
6+
<Canary>
77

8-
**This API is experimental and is not available in a stable version of React yet.**
8+
**The `<Activity />` API is currently only available in React’s Canary and Experimental channels.**
99

10-
You can try it by upgrading React packages to the most recent experimental version:
10+
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
1111

12-
- `react@experimental`
13-
- `react-dom@experimental`
14-
- `eslint-plugin-react-hooks@experimental`
15-
16-
Experimental versions of React may contain bugs. Don't use them in production.
17-
18-
</Experimental>
12+
</Canary>
1913

2014
<Intro>
2115

src/sidebarReference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
{
108108
"title": "<Activity>",
109109
"path": "/reference/react/Activity",
110-
"version": "experimental"
110+
"version": "canary"
111111
},
112112
{
113113
"title": "<ViewTransition>",

0 commit comments

Comments
 (0)