mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
This wires up the use of `async_hooks` in the Node build (as well as the Edge build when a global is available) in DEV mode only. This will be used to track debug info about what suspended during an RSC pass. Enabled behind a flag for now.
31 lines
776 B
JavaScript
31 lines
776 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
|
|
*/
|
|
|
|
import type {Request} from 'react-server/src/ReactFlightServer';
|
|
|
|
export * from '../ReactFlightServerConfigBundlerCustom';
|
|
|
|
export * from '../ReactFlightServerConfigDebugNoop';
|
|
|
|
export type Hints = any;
|
|
export type HintCode = any;
|
|
// eslint-disable-next-line no-unused-vars
|
|
export type HintModel<T: any> = any;
|
|
|
|
export const isPrimaryRenderer = false;
|
|
|
|
export const prepareHostDispatcher = () => {};
|
|
|
|
export const supportsRequestStorage = false;
|
|
export const requestStorage: AsyncLocalStorage<Request> = (null: any);
|
|
|
|
export function createHints(): any {
|
|
return null;
|
|
}
|