Skip to content

Commit 5979a9a

Browse files
committed
Unfork ReactFiberErrorDialog and implement it using the new config options
1 parent d597ebd commit 5979a9a

File tree

10 files changed

+588
-141
lines changed

10 files changed

+588
-141
lines changed

packages/react-dom/index.classic.fb.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ Object.assign((Internals: any), {
2020

2121
export {
2222
createPortal,
23-
createRoot,
24-
hydrateRoot,
2523
findDOMNode,
2624
flushSync,
27-
hydrate,
28-
render,
2925
unmountComponentAtNode,
3026
unstable_batchedUpdates,
3127
unstable_createEventHandle,
@@ -42,4 +38,11 @@ export {
4238
version,
4339
} from './src/client/ReactDOM';
4440

41+
export {
42+
createRoot,
43+
hydrateRoot,
44+
hydrate,
45+
render,
46+
} from './src/client/ReactDOMRootFB';
47+
4548
export {Internals as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED};

packages/react-dom/index.modern.fb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
export {default as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './src/ReactDOMSharedInternals';
1111
export {
1212
createPortal,
13-
createRoot,
14-
hydrateRoot,
1513
flushSync,
1614
unstable_batchedUpdates,
1715
unstable_createEventHandle,
@@ -26,3 +24,5 @@ export {
2624
preinitModule,
2725
version,
2826
} from './src/client/ReactDOM';
27+
28+
export {createRoot, hydrateRoot} from './src/client/ReactDOMRootFB';

0 commit comments

Comments
 (0)