A highly customizable React top-loading bar component with hook-based, ref-based, and state-based control patterns.
Agent Success
Agent success rate when using this tile
64%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.25x
Baseline
Agent success rate without this tile
51%
{
"context": "This evaluation assesses how well the engineer uses react-top-loading-bar's context-based architecture (LoadingBarContainer and useLoadingBar hook) to implement a centralized loading indicator that can be controlled from any component without prop drilling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "LoadingBarContainer setup",
"description": "Uses LoadingBarContainer component to wrap the application, establishing the context provider at the root level",
"max_score": 20
},
{
"name": "LoadingBar component",
"description": "Includes the LoadingBar component (default export from react-top-loading-bar) within the LoadingBarContainer to render the visual loading indicator",
"max_score": 15
},
{
"name": "useLoadingBar hook",
"description": "Uses the useLoadingBar hook in child components to access loading bar control methods without prop drilling",
"max_score": 25
},
{
"name": "start method",
"description": "Calls the start() method (or continuousStart()) from useLoadingBar to initiate the loading animation when operations begin",
"max_score": 15
},
{
"name": "complete method",
"description": "Calls the complete() method from useLoadingBar to finish the loading animation and trigger the fade-out effect",
"max_score": 15
},
{
"name": "Multi-component usage",
"description": "Demonstrates loading bar control from multiple different components (Home, Dashboard, Profile) using the same context instance",
"max_score": 10
}
]
}tessl i tessl/npm-react-top-loading-bar@3.0.0evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10