selectNextCommitIndex() — react Function Reference
Architecture documentation for the selectNextCommitIndex() function in useCommitFilteringAndNavigation.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD d37dfc60_b053_de58_8627_d7fbf6e45e6d["selectNextCommitIndex()"] 1d558132_0276_7e48_1a18_611bb9fef088["useCommitFilteringAndNavigation.js"] d37dfc60_b053_de58_8627_d7fbf6e45e6d -->|defined in| 1d558132_0276_7e48_1a18_611bb9fef088 style d37dfc60_b053_de58_8627_d7fbf6e45e6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/devtools/views/Profiler/useCommitFilteringAndNavigation.js lines 128–140
const selectNextCommitIndex = useCallback(() => {
if (
selectedFilteredCommitIndex === null ||
filteredCommitIndices.length === 0
) {
return;
}
let nextCommitIndex = selectedFilteredCommitIndex + 1;
if (nextCommitIndex === filteredCommitIndices.length) {
nextCommitIndex = 0;
}
selectCommitIndex(filteredCommitIndices[nextCommitIndex]);
}, [selectedFilteredCommitIndex, filteredCommitIndices, selectCommitIndex]);
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does selectNextCommitIndex() do?
selectNextCommitIndex() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Profiler/useCommitFilteringAndNavigation.js.
Where is selectNextCommitIndex() defined?
selectNextCommitIndex() is defined in packages/react-devtools-shared/src/devtools/views/Profiler/useCommitFilteringAndNavigation.js at line 128.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free