Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer nicer streaming APIs #838

Open
3 tasks
lemonmade opened this issue Sep 26, 2024 · 0 comments
Open
3 tasks

Offer nicer streaming APIs #838

lemonmade opened this issue Sep 26, 2024 · 0 comments

Comments

@lemonmade
Copy link
Owner

lemonmade commented Sep 26, 2024

  • Optionally: add a two-chunk stream that renders the entry assets, then return the app chunk
  • Options for streaming the rendering of Suspense boundaries (maybe, not totally sold on this, since it relies on HTML reordering on the client)
  • Add APIs for progressive serializations
const browser = new Browser();

const serialization = await browser.serializations.waitUntil('serialized-id', {
  signal: abortController.signal,
});
// ...

const stream = browser.serializations.stream('serialized-id', {
  signal: abourtController.signal,
});

for await (const serialized of stream) {
  // ...
}
@lemonmade lemonmade transferred this issue from lemonmade/watch Sep 26, 2024
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

No branches or pull requests

1 participant