MCPcopy
hub / github.com/bvaughn/react-virtualized / isRangeVisible

Function isRangeVisible

source/InfiniteLoader/InfiniteLoader.js:160–169  ·  view source on GitHub ↗
({
  lastRenderedStartIndex,
  lastRenderedStopIndex,
  startIndex,
  stopIndex,
})

Source from the content-addressed store, hash-verified

158 * Determines if the specified start/stop range is visible based on the most recently rendered range.
159 */
160export function isRangeVisible({
161 lastRenderedStartIndex,
162 lastRenderedStopIndex,
163 startIndex,
164 stopIndex,
165}) {
166 return !(
167 startIndex > lastRenderedStopIndex || stopIndex < lastRenderedStartIndex
168 );
169}
170
171/**
172 * Returns all of the ranges within a larger range that contain unloaded rows.

Callers 2

_loadUnloadedRangesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…