React fiber config with no scopes
不支持 React Scopes 的渲染器可以从此模块重新导出所有内容。
一、作用
不支持 React Scopes 的渲染器可以从此模块重新导出所有内容。
二、导出的常量
1. 准备范围更新
备注
源码中 21 - 22 行
// React Scopes (when unsupported)
// React 范围(不支持时)
export const prepareScopeUpdate = shim;
2. 通过作用域获取实例
备注
源码中 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.',
);
}