Skip to content

Commit d618181

Browse files
committed
Remove SuspenseList
1 parent 6253d00 commit d618181

File tree

7 files changed

+2
-753
lines changed

7 files changed

+2
-753
lines changed

compat/src/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as _hooks from '../../hooks';
44
import * as preact from 'preact';
55
import { JSXInternal } from '../../src/jsx';
66
import * as _Suspense from './suspense';
7-
import * as _SuspenseList from './suspense-list';
87

98
// export default React;
109
export = React;
@@ -65,7 +64,6 @@ declare namespace React {
6564
// Suspense
6665
export import Suspense = _Suspense.Suspense;
6766
export import lazy = _Suspense.lazy;
68-
export import SuspenseList = _SuspenseList.SuspenseList;
6967

7068
// Compat
7169
export import StrictMode = preact.Fragment;

compat/src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import { memo } from './memo';
3232
import { forwardRef } from './forwardRef';
3333
import { Children } from './Children';
3434
import { Suspense, lazy } from './suspense';
35-
import { SuspenseList } from './suspense-list';
3635
import { createPortal } from './portals';
3736
import {
3837
hydrate,
@@ -184,7 +183,6 @@ export {
184183
unstable_batchedUpdates,
185184
StrictMode,
186185
Suspense,
187-
SuspenseList,
188186
lazy,
189187
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
190188
};
@@ -232,7 +230,6 @@ export default {
232230
unstable_batchedUpdates,
233231
StrictMode,
234232
Suspense,
235-
SuspenseList,
236233
lazy,
237234
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
238235
};

compat/src/suspense-list.d.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

compat/src/suspense-list.js

Lines changed: 0 additions & 127 deletions
This file was deleted.

compat/src/suspense.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Suspense.prototype.render = function (props, state) {
220220

221221
/**
222222
* Checks and calls the parent component's _suspended method, passing in the
223-
* suspended vnode. This is a way for a parent (e.g. SuspenseList) to get notified
223+
* suspended vnode. This is a way for a parent to get notified
224224
* that one of its children/descendants suspended.
225225
*
226226
* The parent MAY return a callback. The callback will get called when the
@@ -235,7 +235,7 @@ Suspense.prototype.render = function (props, state) {
235235
* @param {import('./internal').VNode} vnode
236236
* @returns {((unsuspend: () => void) => void)?}
237237
*/
238-
export function suspended(vnode) {
238+
function suspended(vnode) {
239239
/** @type {import('./internal').Component} */
240240
let component = vnode._parent._component;
241241
return component && component._suspended && component._suspended(vnode);

0 commit comments

Comments
 (0)