Skip to content

Commit

Permalink
Prune some more
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 27, 2024
1 parent dbd45dd commit 7fb54b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 157 deletions.
16 changes: 0 additions & 16 deletions compat/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { memo } from './memo';
import { forwardRef } from './forwardRef';
import { Children } from './Children';
import { Suspense, lazy } from './suspense';
import { SuspenseList } from './suspense-list';
import { createPortal } from './portals';
import { is } from './util';
import { hydrate, render, REACT_ELEMENT_TYPE } from './render';
Expand Down Expand Up @@ -112,16 +111,6 @@ function findDOMNode(component) {
);
}

/**
* Deprecated way to control batched rendering inside the reconciler, but we
* already schedule in batches inside our rendering code
* @template Arg
* @param {(arg: Arg) => void} callback function that triggers the updated
* @param {Arg} [arg] Optional argument that can be passed to the callback
*/
// eslint-disable-next-line camelcase
const unstable_batchedUpdates = (callback, arg) => callback(arg);

/**
* In React, `flushSync` flushes the entire tree and forces a rerender. It's
* implmented here as a no-op.
Expand Down Expand Up @@ -233,11 +222,8 @@ export {
memo,
forwardRef,
flushSync,
// eslint-disable-next-line camelcase
unstable_batchedUpdates,
StrictMode,
Suspense,
SuspenseList,
lazy
};

Expand Down Expand Up @@ -281,9 +267,7 @@ export default {
memo,
forwardRef,
flushSync,
unstable_batchedUpdates,
StrictMode,
Suspense,
SuspenseList,
lazy
};
14 changes: 0 additions & 14 deletions compat/src/suspense-list.d.ts

This file was deleted.

127 changes: 0 additions & 127 deletions compat/src/suspense-list.js

This file was deleted.

0 comments on commit 7fb54b6

Please sign in to comment.