Skip to main content

Per-item polling

Each item can define schedules with different cadence and callbacks.

Per-item pollingLive

Per-item polling

0/0 jobs polling
paused
import { useTimerGroup } from '@crup/react-timer-hook/group';

items: jobs.map(job => ({
id: job.id,
autoStart: true,
schedules: [{ id: 'status', everyMs: job.pollMs, callback: refresh }],
}))