Home / Function/ HorizontalScrollStateChangeCallback() — react Function Reference

HorizontalScrollStateChangeCallback() — react Function Reference

Architecture documentation for the HorizontalScrollStateChangeCallback() function in types.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  46a4fcc9_4822_5e18_30d1_aeaa3015d388["HorizontalScrollStateChangeCallback()"]
  20cc2065_4b5b_fd6b_be12_28f36b0ff4cf["types.js"]
  46a4fcc9_4822_5e18_30d1_aeaa3015d388 -->|defined in| 20cc2065_4b5b_fd6b_be12_28f36b0ff4cf
  style 46a4fcc9_4822_5e18_30d1_aeaa3015d388 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/types.js lines 165–187

export type HorizontalScrollStateChangeCallback = (
  scrollState: ScrollState,
) => void;
export type SearchRegExpStateChangeCallback = (
  searchRegExp: RegExp | null,
) => void;

// Imperative view state that corresponds to profiler data.
// This state lives outside of React's lifecycle
// and should be erased/reset whenever new profiler data is loaded.
export type ViewState = {
  horizontalScrollState: ScrollState,
  onHorizontalScrollStateChange: (
    callback: HorizontalScrollStateChangeCallback,
  ) => void,
  onSearchRegExpStateChange: (
    callback: SearchRegExpStateChangeCallback,
  ) => void,
  searchRegExp: RegExp | null,
  updateHorizontalScrollState: (scrollState: ScrollState) => void,
  updateSearchRegExpState: (searchRegExp: RegExp | null) => void,
  viewToMutableViewStateMap: Map<string, mixed>,
};

Domain

Subdomains

Frequently Asked Questions

What does HorizontalScrollStateChangeCallback() do?
HorizontalScrollStateChangeCallback() is a function in the react codebase, defined in packages/react-devtools-timeline/src/types.js.
Where is HorizontalScrollStateChangeCallback() defined?
HorizontalScrollStateChangeCallback() is defined in packages/react-devtools-timeline/src/types.js at line 165.

Analyze Your Own Codebase

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

Try Supermodel Free