Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents patterns for managing React generation streams with the useGenerationStream hook, including StreamStatus and StepItem tracking.
32% 100%+68 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 7 of 22 without it.
3 of 3 safety checks passed
Not used yet
This skill covers patterns for managing generation streams in a React application.
Trigger: Load when using useGenerationStream for state management.
| Task | Pattern |
|---|---|
| Manage stream status | StreamStatus |
| Handle step items | StepItem |
StreamStatus to track the state of the generation stream.StepItem to represent individual steps in the generation process.Utilize StreamStatus to track the state of the generation stream, allowing for responsive UI updates.
import { StreamStatus } from '@/hooks/useGenerationStream';
const status: StreamStatus = StreamStatus.RUNNING; // Example usage
Use StepItem to represent individual steps in the generation process, enabling detailed tracking of progress.
import { StepItem } from '@/hooks/useGenerationStream';
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.