Skip to content

fix(runtime): refetch island queries every 60s when mounted - #45

Merged
lukaisailovic merged 1 commit into
mainfrom
fix/island-query-stale-refetch
Jul 14, 2026
Merged

fix(runtime): refetch island queries every 60s when mounted#45
lukaisailovic merged 1 commit into
mainfrom
fix/island-query-stale-refetch

Conversation

@lukaisailovic

Copy link
Copy Markdown
Owner

Summary

  • Dashboard island queries (and open drilldowns) now use staleTime + refetchInterval of 60s so mounted tiles re-query when data is older than a minute.
  • SSE datasets-changed remains the primary live path; this is a small client-side backup when the tab stays open.

Test plan

  • pnpm --filter @openislands/runtime typecheck (or full monorepo typecheck)
  • Serve a template, leave a page open >60s, confirm island requests hit /api/query again
  • Confirm file edits still refresh immediately via SSE (no wait for the interval)

SSE already invalidates on file changes; without a timer, tiles can sit forever
if a change is missed or data ages out. Align staleTime with a 60s interval.
@lukaisailovic lukaisailovic added the enhancement New feature or request label Jul 14, 2026
@lukaisailovic
lukaisailovic merged commit d355ee1 into main Jul 14, 2026
2 checks passed
@lukaisailovic
lukaisailovic deleted the fix/island-query-stale-refetch branch July 14, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant