/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
packages/shared/HostConfigWithNoPersistence.js
33 строки
980 B
Dominic Gannaway
Adds experimental fundamental interface (#16049)
20 июл 2019, 00:20
Не верифицирован
20 июл 2019, 00:20
2c4d61e
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its 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 invariant from 'shared/invariant'; // Renderers that don't support persistence // can re-export everything from this module. function shim(...args: any) { invariant( false, 'The current renderer does not support persistence. ' + 'This error is likely caused by a bug in React. ' + 'Please file an issue.', ); } // Persistence (when unsupported) export const supportsPersistence = false; export const cloneInstance = shim; export const cloneFundamentalInstance = 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;