React fiber config with not persistence
不支持持久化的渲染器可以重新导出该模块的所有内容。
作用
不支持持久化的渲染器可以重新导出该模块的所有内容。
导出的常量
支持持久性
// Persistence (when unsupported)
// 持久化(当不支持时)
// 支持持久性
export const supportsPersistence = false;
克隆实例
export const cloneInstance = shim;
创建容器子集
export const createContainerChildSet = shim;
将子节点添加到容器子集
export const appendChildToContainerChildSet = shim;
最终确定容器子元素
export const finalizeContainerChildren = shim;
替换容器子元素
export const replaceContainerChildren = shim;
克隆隐藏实例
export const cloneHiddenInstance = shim;
克隆隐藏文本实例
export const cloneHiddenTextInstance = shim;
工具
兼容垫片
// Renderers that don't support persistence
// can re-export everything from this module.
// 不支持持久化的渲染器可以重新导出该模块的所有内容。
function shim(...args: any): empty {
throw new Error(
'The current renderer does not support persistence. ' +
'This error is likely caused by a bug in React. ' +
'Please file an issue.',
);
}