MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / startPolling

Function startPolling

src/components/WeeklyCalendar.tsx:44–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 let timerId: ReturnType<typeof setInterval> | null = null;
43
44 const startPolling = () => {
45 stopPolling();
46 timerId = setInterval(fetchTasks, POLL_INTERVAL);
47 };
48
49 const stopPolling = () => {
50 if (timerId !== null) {

Callers 2

handleVisibilityChangeFunction · 0.85
WeeklyCalendarFunction · 0.85

Calls 1

stopPollingFunction · 0.85

Tested by

no test coverage detected