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
  3da217ae_4fa5_2e79_3615_710a0fd413df["noServerCall()"]
  e5c2a626_4da8_b73f_fa09_e9142c68e807["ReactFlightDOMClientNode.js"]
  3da217ae_4fa5_2e79_3615_710a0fd413df -->|defined in| e5c2a626_4da8_b73f_fa09_e9142c68e807
  style 3da217ae_4fa5_2e79_3615_710a0fd413df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-server-dom-webpack/src/client/ReactFlightDOMClientNode.js lines 44–50

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-webpack/src/client/ReactFlightDOMClientNode.js.
Where is noServerCall() defined?
noServerCall() is defined in packages/react-server-dom-webpack/src/client/ReactFlightDOMClientNode.js at line 44.

Analyze Your Own Codebase

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

Try Supermodel Free