Home / Function/ Never() — react Function Reference

Never() — react Function Reference

Architecture documentation for the Never() function in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  8d61cf7f_1838_e378_287e_c31c8c79b8cc["Never()"]
  a48cc242_4b50_fd09_0e8c_65edf69b7004["index.js"]
  8d61cf7f_1838_e378_287e_c31c8c79b8cc -->|defined in| a48cc242_4b50_fd09_0e8c_65edf69b7004
  92952112_95e3_1198_881d_9033798ca772["readRecord()"]
  8d61cf7f_1838_e378_287e_c31c8c79b8cc -->|calls| 92952112_95e3_1198_881d_9033798ca772
  style 8d61cf7f_1838_e378_287e_c31c8c79b8cc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shell/src/app/SuspenseTree/index.js lines 344–352

function Never({id}: {id: string}) {
  let promise = nevers.get(id);
  if (!promise) {
    promise = new Promise(() => {});
    (promise as any).displayName = id;
    nevers.set(id, promise);
  }
  readRecord(promise);
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does Never() do?
Never() is a function in the react codebase, defined in packages/react-devtools-shell/src/app/SuspenseTree/index.js.
Where is Never() defined?
Never() is defined in packages/react-devtools-shell/src/app/SuspenseTree/index.js at line 344.
What does Never() call?
Never() calls 1 function(s): readRecord.

Analyze Your Own Codebase

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

Try Supermodel Free