Home / File/ ReactFiberConfigWithNoSingletons.js — react Source File

ReactFiberConfigWithNoSingletons.js — react Source File

Architecture documentation for ReactFiberConfigWithNoSingletons.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

// Renderers that don't support mutation
// can re-export everything from this module.

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

// Resources (when unsupported)
export const supportsSingletons = false;
export const resolveSingletonInstance = shim;
export const acquireSingletonInstance = shim;
export const releaseSingletonInstance = shim;
export const isHostSingletonType = shim;
export const isSingletonScope = shim;

Domain

Subdomains

Functions

Frequently Asked Questions

What does ReactFiberConfigWithNoSingletons.js do?
ReactFiberConfigWithNoSingletons.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactFiberConfigWithNoSingletons.js?
ReactFiberConfigWithNoSingletons.js defines 1 function(s): shim.
Where is ReactFiberConfigWithNoSingletons.js in the architecture?
ReactFiberConfigWithNoSingletons.js is located at packages/react-reconciler/src/ReactFiberConfigWithNoSingletons.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-reconciler/src).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free