mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-10-26 15:05:04 +00:00
Merge #638: bind the frontend error-state retry callback
This commit is contained in:
1 file changed
+1
-1
@@ -79,7 +79,7 @@ export function TaskItem({ task, onToggle, onDelete }: TaskItemProps) {
|
||||
```tsx
|
||||
// Container: handles data
|
||||
export function TaskListContainer() {
|
||||
const { tasks, isLoading, error } = useTasks();
|
||||
const { tasks, isLoading, error, refetch } = useTasks();
|
||||
|
||||
if (isLoading) return <TaskListSkeleton />;
|
||||
if (error) return <ErrorState message="Failed to load tasks" retry={refetch} />;
|
||||
|
||||
Reference in new issue
Block a user