跳到主要内容

React fiber config with no scopes

不支持 React Scopes 的渲染器可以从此模块重新导出所有内容。

作用

不支持 React Scopes 的渲染器可以从此模块重新导出所有内容。

导出的常量

准备范围更新

备注

源码中 21 - 22 行

// React Scopes (when unsupported)
// React 范围(不支持时)
export const prepareScopeUpdate = shim;

通过作用域获取实例

备注

源码中 23 行

export const getInstanceFromScope = shim;

工具

// Renderers that don't support React Scopes
// can re-export everything from this module.
// 不支持 React Scopes 的渲染器可以从此模块重新导出所有内容。

function shim(...args: any): empty {
throw new Error(
'The current renderer does not support React Scopes. ' +
'This error is likely caused by a bug in React. ' +
'Please file an issue.',
);
}