Skip to content

Commit fbc9398

Browse files
committed
Unfork ReactFiberErrorDialog and implement it using the new config options
1 parent 60e55a4 commit fbc9398

File tree

11 files changed

+543
-142
lines changed

11 files changed

+543
-142
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ Object.assign((Internals: any), {
2020

2121
export {
2222
createPortal,
23-
createRoot,
24-
hydrateRoot,
2523
findDOMNode,
2624
flushSync,
27-
render,
2825
unmountComponentAtNode,
2926
unstable_batchedUpdates,
3027
unstable_createEventHandle,
@@ -41,4 +38,6 @@ export {
4138
version,
4239
} from './src/client/ReactDOM';
4340

41+
export {createRoot, hydrateRoot, render} from './src/client/ReactDOMRootFB';
42+
4443
export {Internals as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED};

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

Lines changed: 2 additions & 2 deletions
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';

packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ describe('ReactDOMServerPartialHydration', () => {
331331
'Component',
332332
'Component',
333333
// Hydration mismatch is logged
334-
'Hydration failed because the server rendered HTML didn\'t match the client.',
334+
"Hydration failed because the server rendered HTML didn't match the client.",
335335
'There was an error while hydrating this Suspense boundary.',
336336
]);
337337

@@ -1162,7 +1162,7 @@ describe('ReactDOMServerPartialHydration', () => {
11621162
});
11631163

11641164
assertLog([
1165-
'Hydration failed because the server rendered HTML didn\'t match the client.',
1165+
"Hydration failed because the server rendered HTML didn't match the client.",
11661166
'There was an error while hydrating this Suspense boundary.',
11671167
]);
11681168

0 commit comments

Comments
 (0)