Home / Function/ noServerCall() — react Function Reference

noServerCall() — react Function Reference

Architecture documentation for the noServerCall() function in ReactFlightDOMClientNode.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  5527f404_9ab7_52b2_aa4b_37b9499c9cd8["noServerCall()"]
  5de61b0e_4fec_b81a_51fb_9288569929db["ReactFlightDOMClientNode.js"]
  5527f404_9ab7_52b2_aa4b_37b9499c9cd8 -->|defined in| 5de61b0e_4fec_b81a_51fb_9288569929db
  style 5527f404_9ab7_52b2_aa4b_37b9499c9cd8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-server-dom-parcel/src/client/ReactFlightDOMClientNode.js lines 37–43

function noServerCall() {
  throw new Error(
    'Server Functions cannot be called during initial render. ' +
      'This would create a fetch waterfall. Try to use a Server Component ' +
      'to pass data to Client Components instead.',
  );
}

Domain

Subdomains

Frequently Asked Questions

What does noServerCall() do?
noServerCall() is a function in the react codebase, defined in packages/react-server-dom-parcel/src/client/ReactFlightDOMClientNode.js.
Where is noServerCall() defined?
noServerCall() is defined in packages/react-server-dom-parcel/src/client/ReactFlightDOMClientNode.js at line 37.

Analyze Your Own Codebase

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

Try Supermodel Free