mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
28 lines
711 B
JavaScript
28 lines
711 B
JavaScript
/**
|
|
* 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 React Scopes
|
|
// can re-export everything from this module.
|
|
|
|
function shim(...args: any) {
|
|
invariant(
|
|
false,
|
|
'The current renderer does not support React Scopes. ' +
|
|
'This error is likely caused by a bug in React. ' +
|
|
'Please file an issue.',
|
|
);
|
|
}
|
|
|
|
// React Scopes (when unsupported)
|
|
export const prepareScopeUpdate = shim;
|
|
export const removeScopeEventHandles = shim;
|
|
export const getInstanceFromScope = shim;
|