Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/src/ui/polled
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris fd51cbd19d swarm-ui: pages that only display start from the answer they last saw, then refresh behind it
usePolled takes a cache key: it saves each answer in localStorage and starts
from the saved one, so opening the agents, alerts, builds, review runs or hives
view shows the last data at once and the refresh spinner marks the update. A
saved answer is dropped after a day, when it was saved by another build of the
UI, at log out (a new onLogout of the shared user menu) and when the gateway
ends the login (a new onSessionEnded of the session guard). Pages with an
editor (schedules, notification flows, broadcast) do not use it.
2026-11-05 23:14:25 +01:00
..
answer-cache.ts swarm-ui: pages that only display start from the answer they last saw, then refresh behind it 2026-11-05 23:14:25 +01:00
busy-hold.ts swarm-ui: the refresh picker shows a spinner in place of its clock while its page is fetching 2026-11-05 23:09:07 +01:00
poller.ts swarm-ui: the refresh picker shows a spinner in place of its clock while its page is fetching 2026-11-05 23:09:07 +01:00
usePolled.ts swarm-ui: pages that only display start from the answer they last saw, then refresh behind it 2026-11-05 23:14:25 +01:00