File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,13 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
4343
4444declare module "." {
4545 export interface SuspenseProps {
46+ // @enableCPUSuspense
4647 /**
4748 * The presence of this prop indicates that the content is computationally expensive to render.
4849 * In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
4950 * @see {@link https://github.com/facebook/react/pull/19936 }
5051 */
51- unstable_expectedLoadTime ?: number | undefined ;
52+ defer ?: boolean | undefined ;
5253 }
5354
5455 export type SuspenseListRevealOrder = "forwards" | "backwards" | "together" | "independent" ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function suspenseTest() {
1515
1616 function FlameChart ( ) {
1717 return (
18- < React . Suspense fallback = "computing..." unstable_expectedLoadTime = { 2000 } >
18+ < React . Suspense fallback = "computing..." defer >
1919 < DisplayData />
2020 </ React . Suspense >
2121 ) ;
Original file line number Diff line number Diff line change @@ -43,12 +43,13 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
4343
4444declare module "." {
4545 export interface SuspenseProps {
46+ // @enableCPUSuspense
4647 /**
4748 * The presence of this prop indicates that the content is computationally expensive to render.
4849 * In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
4950 * @see {@link https://github.com/facebook/react/pull/19936 }
5051 */
51- unstable_expectedLoadTime ?: number | undefined ;
52+ defer ?: boolean | undefined ;
5253 }
5354
5455 export type SuspenseListRevealOrder = "forwards" | "backwards" | "together" | "independent" ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function suspenseTest() {
1515
1616 function FlameChart ( ) {
1717 return (
18- < React . Suspense fallback = "computing..." unstable_expectedLoadTime = { 2000 } >
18+ < React . Suspense fallback = "computing..." defer >
1919 < DisplayData />
2020 </ React . Suspense >
2121 ) ;
You can’t perform that action at this time.
0 commit comments