Skip to content

partykit: preserve slow document hydration - #438

Open
spencerc99 wants to merge 1 commit into
mainfrom
cx/supabase-hydration-timeout
Open

partykit: preserve slow document hydration#438
spencerc99 wants to merge 1 commit into
mainfrom
cx/supabase-hydration-timeout

Conversation

@spencerc99

@spencerc99 spencerc99 commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • give Supabase document hydration one shared 15-second deadline instead of aborting each read at 5 seconds
  • record slow and retried hydration timing without logging document data
  • add real loopback regression coverage for a response that arrives after 5 seconds

Rationale

Production telemetry showed document reads repeatedly hitting the previous 5-second cutoff even when Supabase could still return the room. A shared deadline preserves explicit-error retries while allowing a slow viable read to complete.

This keeps @supabase/supabase-js; it does not change the database client or dependencies.

Testing

  • bun test partykit/__tests__ (289 passed)
  • bun run check:partykit
  • Wrangler production Worker dry-run bundle
  • git diff --check origin/main...HEAD

No changeset, public docs, starter-template update, or screenshots are needed because this changes only internal PartyKit persistence timing and telemetry.

@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

bun add https://pkg.pr.new/@playhtml/common@438
bun add https://pkg.pr.new/playhtml@438
bun add https://pkg.pr.new/@playhtml/react@438

commit: 151289b

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