Skip to content

Commit 8571249

Browse files
authored
Add unstable_Activity to server entrypoint (#32833)
Activity is a client component, but you should still be able to import it and render it from a Server Component. Same as what we do with other types like Suspense and ViewTransition.
1 parent 8da36d0 commit 8571249

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react/src/ReactServer.experimental.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
REACT_SUSPENSE_TYPE,
1818
REACT_SUSPENSE_LIST_TYPE,
1919
REACT_VIEW_TRANSITION_TYPE,
20+
REACT_ACTIVITY_TYPE,
2021
} from 'shared/ReactSymbols';
2122
import {
2223
cloneElement,
@@ -80,4 +81,5 @@ export {
8081
// Experimental
8182
REACT_SUSPENSE_LIST_TYPE as unstable_SuspenseList,
8283
REACT_VIEW_TRANSITION_TYPE as unstable_ViewTransition,
84+
REACT_ACTIVITY_TYPE as unstable_Activity,
8385
};

0 commit comments

Comments
 (0)