Home / Function/ getClientReferenceKey() — react Function Reference

getClientReferenceKey() — react Function Reference

Architecture documentation for the getClientReferenceKey() function in ReactFlightServerConfig.markup.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9f742149_ad06_5604_1d13_50c38f54c4c5["getClientReferenceKey()"]
  6f6f9c34_6954_9855_09f5_9a4b373b9baf["ReactFlightServerConfig.markup.js"]
  9f742149_ad06_5604_1d13_50c38f54c4c5 -->|defined in| 6f6f9c34_6954_9855_09f5_9a4b373b9baf
  style 9f742149_ad06_5604_1d13_50c38f54c4c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-server/src/forks/ReactFlightServerConfig.markup.js lines 66–74

export function getClientReferenceKey(
  reference: ClientReference<any>,
): ClientReferenceKey {
  throw new Error(
    'Attempted to render a Client Component from renderToHTML. ' +
      'This is not supported since it will never hydrate. ' +
      'Only render Server Components with renderToHTML.',
  );
}

Domain

Subdomains

Frequently Asked Questions

What does getClientReferenceKey() do?
getClientReferenceKey() is a function in the react codebase, defined in packages/react-server/src/forks/ReactFlightServerConfig.markup.js.
Where is getClientReferenceKey() defined?
getClientReferenceKey() is defined in packages/react-server/src/forks/ReactFlightServerConfig.markup.js at line 66.

Analyze Your Own Codebase

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

Try Supermodel Free