Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/real-queue/lib/hooks/useStatusErrors"

Index

Functions

Functions

useStatusErrors

  • useStatusErrors(): { errors: Record<string, { actions: Array<{ action?: "delete" | "retry" | "skip"; linkText: string; target?: string; url: string }>; description: string; failedJobs: Job[]; label: string; type: string }> }
  • Listen to the queue status and automatically create a state with the errors.

    Returns { errors: Record<string, { actions: Array<{ action?: "delete" | "retry" | "skip"; linkText: string; target?: string; url: string }>; description: string; failedJobs: Job[]; label: string; type: string }> }

    • errors: Record<string, { actions: Array<{ action?: "delete" | "retry" | "skip"; linkText: string; target?: string; url: string }>; description: string; failedJobs: Job[]; label: string; type: string }>

Generated using TypeDoc