Skip to content

fix: wire prediction markets bootstrap hydration#1063

Merged
koala73 merged 1 commit intomainfrom
fix/prediction-bootstrap-hydration
Mar 5, 2026
Merged

fix: wire prediction markets bootstrap hydration#1063
koala73 merged 1 commit intomainfrom
fix/prediction-bootstrap-hydration

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Mar 5, 2026

Summary

  • seed-prediction-markets cron writes to prediction:markets-bootstrap:v1 and api/bootstrap.js already registers it, but data-loader.ts never consumed the hydrated data
  • Predictions panel relied solely on live Polymarket Gamma API calls (fragile: JA3 blocking, proxy chain failures)
  • Now loadPredictions() tries getHydratedData('predictions') first for instant rendering, then refreshes with live data

Test plan

  • Verify predictions panel renders immediately on page load (from bootstrap)
  • Verify live data refresh still works after initial hydration
  • Verify tech variant gets tech markets, full variant gets geopolitical

The seed-prediction-markets cron writes to Redis key
prediction:markets-bootstrap:v1 and bootstrap.js already
registers it, but data-loader never consumed it. Predictions
panel relied solely on live Polymarket Gamma API calls which
are fragile (JA3 blocking, proxy failures).

Now loadPredictions() tries getHydratedData('predictions')
first for instant rendering, then fetches live data to refresh.
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Mar 5, 2026 1:52pm

Request Review

@koala73 koala73 merged commit 22be927 into main Mar 5, 2026
3 checks passed
aldoyh pushed a commit to aldoyh/worldmonitor that referenced this pull request Mar 6, 2026
The seed-prediction-markets cron writes to Redis key
prediction:markets-bootstrap:v1 and bootstrap.js already
registers it, but data-loader never consumed it. Predictions
panel relied solely on live Polymarket Gamma API calls which
are fragile (JA3 blocking, proxy failures).

Now loadPredictions() tries getHydratedData('predictions')
first for instant rendering, then fetches live data to refresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant