mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
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.
This commit is contained in:
parent
8da36d0508
commit
8571249eb8
|
|
@ -17,6 +17,7 @@ import {
|
|||
REACT_SUSPENSE_TYPE,
|
||||
REACT_SUSPENSE_LIST_TYPE,
|
||||
REACT_VIEW_TRANSITION_TYPE,
|
||||
REACT_ACTIVITY_TYPE,
|
||||
} from 'shared/ReactSymbols';
|
||||
import {
|
||||
cloneElement,
|
||||
|
|
@ -80,4 +81,5 @@ export {
|
|||
// Experimental
|
||||
REACT_SUSPENSE_LIST_TYPE as unstable_SuspenseList,
|
||||
REACT_VIEW_TRANSITION_TYPE as unstable_ViewTransition,
|
||||
REACT_ACTIVITY_TYPE as unstable_Activity,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user