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 criteria evaluates how well the engineer uses react-top-loading-bar's hook-based control pattern to manage loading states across multiple components using the LoadingBarContainer and useLoadingBar hook.",
"type": "weighted_checklist",
"checklist": [
{
"name": "LoadingBarContainer setup",
"description": "The App component wraps the application with LoadingBarContainer component to provide context for the loading bar.",
"max_score": 25
},
{
"name": "useLoadingBar hook usage",
"description": "Both UserList and Posts sections use the useLoadingBar hook to access loading bar control methods from context.",
"max_score": 25
},
{
"name": "start() method",
"description": "Both sections call the start() method from useLoadingBar when beginning a fetch operation to initiate the loading bar.",
"max_score": 20
},
{
"name": "complete() method",
"description": "Both sections call the complete() method from useLoadingBar when a fetch operation finishes (success or error) to complete the loading bar animation.",
"max_score": 20
},
{
"name": "Error handling",
"description": "The loading bar completes properly even when fetch operations fail, typically by calling complete() in a finally block or catch handler.",
"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