mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
41f0e9dae3
When implementing `preloadModule` and `preinitModule` these methods were not exposed on the server rendering stub when they should have been. This PR corrects that omission.
31 lines
771 B
JavaScript
31 lines
771 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
// Export all exports so that they're available in tests.
|
|
// We can't use export * from in Flow for some reason.
|
|
|
|
import ReactVersion from 'shared/ReactVersion';
|
|
export {ReactVersion as version};
|
|
|
|
export {default as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './src/ReactDOMSharedInternals';
|
|
|
|
export {
|
|
createPortal,
|
|
flushSync,
|
|
prefetchDNS,
|
|
preconnect,
|
|
preload,
|
|
preloadModule,
|
|
preinit,
|
|
preinitModule,
|
|
experimental_useFormStatus,
|
|
experimental_useFormState,
|
|
unstable_batchedUpdates,
|
|
} from './src/server/ReactDOMServerRenderingStub';
|