Skip to content

Commit

Permalink
Unfork ReactFiberErrorDialog and implement it using the new config op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
sebmarkbage committed Mar 26, 2024
1 parent d597ebd commit 6b0f939
Show file tree
Hide file tree
Showing 10 changed files with 594 additions and 141 deletions.
11 changes: 7 additions & 4 deletions packages/react-dom/index.classic.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ Object.assign((Internals: any), {

export {
createPortal,
createRoot,
hydrateRoot,
findDOMNode,
flushSync,
hydrate,
render,
unmountComponentAtNode,
unstable_batchedUpdates,
unstable_createEventHandle,
Expand All @@ -42,4 +38,11 @@ export {
version,
} from './src/client/ReactDOM';

export {
createRoot,
hydrateRoot,
hydrate,
render,
} from './src/client/ReactDOMRootFB';

export {Internals as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED};
4 changes: 2 additions & 2 deletions packages/react-dom/index.modern.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
export {default as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './src/ReactDOMSharedInternals';
export {
createPortal,
createRoot,
hydrateRoot,
flushSync,
unstable_batchedUpdates,
unstable_createEventHandle,
Expand All @@ -26,3 +24,5 @@ export {
preinitModule,
version,
} from './src/client/ReactDOM';

export {createRoot, hydrateRoot} from './src/client/ReactDOMRootFB';
Loading

0 comments on commit 6b0f939

Please sign in to comment.