Home / Function/ getStreamData() — react Function Reference

getStreamData() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  99f27261_403d_91e3_bb74_8dd116964871["getStreamData()"]
  65a63c30_9cf8_cbd3_f517_fdb60be9c536["App"]
  99f27261_403d_91e3_bb74_8dd116964871 -->|defined in| 65a63c30_9cf8_cbd3_f517_fdb60be9c536
  180ba2a5_ca78_9a74_efcc_7a8883de46ec["render()"]
  180ba2a5_ca78_9a74_efcc_7a8883de46ec -->|calls| 99f27261_403d_91e3_bb74_8dd116964871
  style 99f27261_403d_91e3_bb74_8dd116964871 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/concurrent/time-slicing/src/index.js lines 19–36

  getStreamData(input) {
    if (cachedData.has(input)) {
      return cachedData.get(input);
    }
    const multiplier = input.length !== 0 ? input.length : 1;
    const complexity =
      (parseInt(window.location.search.slice(1), 10) / 100) * 25 || 25;
    const data = _.range(5).map(t =>
      _.range(complexity * multiplier).map((j, i) => {
        return {
          x: j,
          y: (t + 1) * _.random(0, 255),
        };
      })
    );
    cachedData.set(input, data);
    return data;
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does getStreamData() do?
getStreamData() is a function in the react codebase, defined in fixtures/concurrent/time-slicing/src/index.js.
Where is getStreamData() defined?
getStreamData() is defined in fixtures/concurrent/time-slicing/src/index.js at line 19.
What calls getStreamData()?
getStreamData() is called by 1 function(s): render.

Analyze Your Own Codebase

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

Try Supermodel Free