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.
Andrew Clark committed
Apr 9, 2025 at 01:49 UTC
8571249eb87efa1e20ecb8a839cc380e63da767a
1 file changed
+2
packages/react/src/ReactServer.experimental.js
+2
@@ -17,6 +17,7 @@ import {
17
REACT_SUSPENSE_TYPE,
18
REACT_SUSPENSE_LIST_TYPE,
19
REACT_VIEW_TRANSITION_TYPE,
20
+ REACT_ACTIVITY_TYPE,
21
} from 'shared/ReactSymbols';
22
import {
23
cloneElement,
@@ -80,4 +81,5 @@ export {
81
// Experimental
82
REACT_SUSPENSE_LIST_TYPE as unstable_SuspenseList,
83
REACT_VIEW_TRANSITION_TYPE as unstable_ViewTransition,
84
+ REACT_ACTIVITY_TYPE as unstable_Activity,
85
};