Title: [Feature]: True resumability model for SSR beyond the key/value collector · Issue #129 · bQuery/bQuery · GitHub
Open Graph Title: [Feature]: True resumability model for SSR beyond the key/value collector · Issue #129 · bQuery/bQuery
X Title: [Feature]: True resumability model for SSR beyond the key/value collector · Issue #129 · bQuery/bQuery
Description: Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case createResumableState() is documented as "a tiny key/value collector....
Open Graph Description: Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case createResumableState() is do...
X Description: Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case createResumableState() is do...
Opengraph URL: https://github.com/bQuery/bQuery/issues/129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature]: True resumability model for SSR beyond the key/value collector","articleBody":"**Pre-flight checklist**\n- [x] I searched existing issues and did not find a duplicate request.\n- [x] I explained the problem or use case, not just the desired API.\n\n**Problem or use case**\n`createResumableState()` is documented as \"a tiny key/value collector.\" That is enough to ship a few serialized values across the wire, but it is not a resumability model in the sense the term is used competitively — there is no way to resume in-flight reactive computations, event wiring, or component state without re-executing setup on the client. For large pages this leaves bQuery on the \"hydrate everything\" path rather than the \"resume without re-execution\" path, which caps its SSR performance story and is a blocker to `ssr` Stable (#127).\n\n**Proposed solution**\nDesign a first-party resumability layer that serializes enough of the reactive graph and listener registry for the client to **resume** rather than **replay** — at minimum: deferred hydration boundaries that carry their signal subscriptions, event-handler references resumable by id, and store slices rehydrated without re-running actions. Keep it opt-in and tree-shakeable so apps that prefer classic hydration pay nothing. Must remain zero-dependency and respect the security model (no `eval`-based revival of handlers).\n\n**Possible API or UX shape**\n```ts\nimport { createResumableBoundary, resume } from \"@bquery/bquery/ssr\";\n\n// server\nconst boundary = createResumableBoundary(view, { serialize: [\"signals\", \"handlers\", \"store\"] });\n// emits \u003cbq-resume id=\"...\"\u003e with serialized graph\n\n// client\nresume(); // attaches resumable boundaries in place, no setup re-run\n```\n\n**Alternatives considered**\nKeeping the key/value collector and documenting that bQuery does \"progressive hydration, not resumability\" — acceptable as a fallback, but it concedes a capability axis to Qwik-style resumability and undercuts the performance narrative. A full Qwik-grade serialization of all closures — rejected as over-scoped and at odds with the zero-dependency, security-first posture; a bounded, opt-in boundary model is the right middle.\n\n**Relevant area**\n`ssr`\n\n**Additional context**\nPairs with island hydration, which already exists (`hydrateOnVisible/Idle/Interaction/Media`). The ask is to let those islands *resume* state rather than reconstruct it. This is the most forward-looking SSR ticket and can land after #128/#130 if sequencing is needed.\n","author":{"url":"https://github.com/JosunLP","@type":"Person","name":"JosunLP"},"datePublished":"2026-06-26T21:25:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/129/bQuery/issues/129"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:97cfa062-dd41-19e3-8696-0e12fdff2fe0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2C0:47EDE:3114D9A:4636401:6A4FBD7B |
| html-safe-nonce | 6abdbfce65eb07ddce7846017641dbfc8d32ad8379eb08a99a55a378907df46b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkMwOjQ3RURFOjMxMTREOUE6NDYzNjQwMTo2QTRGQkQ3QiIsInZpc2l0b3JfaWQiOiI1NjUxMzU5MjIzMDIxMjg4ODI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bc27faa7988f3d7484baa0ccdda230fea32f5ee85cc3fbb306ee5bb9c9e59d40 |
| hovercard-subject-tag | issue:4755236029 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bQuery/bQuery/129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a0c5868d8f910df40c9f70f9dd860e2d2cf71c1e96b67cf10f4623ffac03d21/bQuery/bQuery/issues/129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a0c5868d8f910df40c9f70f9dd860e2d2cf71c1e96b67cf10f4623ffac03d21/bQuery/bQuery/issues/129 |
| og:image:alt | Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case createResumableState() is do... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JosunLP |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d8f8209b188a80e19a6957836ab9229715797be5db1a04163963c674ccc33f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/bQuery/bQuery git https://github.com/bQuery/bQuery.git |
| octolytics-dimension-user_id | 256381806 |
| octolytics-dimension-user_login | bQuery |
| octolytics-dimension-repository_id | 1139284244 |
| octolytics-dimension-repository_nwo | bQuery/bQuery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1139284244 |
| octolytics-dimension-repository_network_root_nwo | bQuery/bQuery |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ea848e83cf3bf3613dd7b13d52965a684fd23ec5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width