Skip to content
Web

Qwik 2.0 RC Moves Resumable State Out of HTML Comments

Qwik 2.0 RC removes HTML comment markers and adds experimental out-of-order streaming; I'd test rendering, async boundaries, and bundle trade-offs separately.

Topic
Web
Reading time
9 min
Length
1,907 words
Published
Nov 17, 2026
10:18 pm IST
In this article
  1. Removing comments changes more than the HTML output
  2. Streaming boundaries are explicit and experimental
  3. The benchmark gain needs a workload beside it
  4. Migrating an existing Qwik application without mixing variables
  5. Capture the current rendering contract
  6. Review async behavior after the automated migration
  7. Validate the response path used in deployment
  8. Loader caching deserves its own review
  9. Should an existing React app move to Qwik?
  10. Streaming does not remove the slow dependency

Qwik 2.0 RC replaces the HTML comment markers used for resumable rendering with compressed state and virtual-node blocks. It also adds experimental out-of-order streaming. Put explicit boundaries around slow regions, and the server can send the rest of the page without waiting for them. I think that's a rendering change worth testing. It is not, on its own, a reason to rewrite an existing application. The release candidate changes package names and async APIs too, so I'd keep two questions separate: did the migration preserve behavior, and did streaming help?

The release candidate published on October 1, 2026 is available as @qwik.dev/[email protected]. That date has passed. This is something I can evaluate now, rather than an upcoming launch to keep an eye on. What interests me is the change underneath the rendered page; the release label alone doesn't tell me much about whether I'd want it in an application.

Removing comments changes more than the HTML output

Qwik serializes state and event listeners into HTML, then lazily loads component JavaScript when a user interacts with the page. In v1, HTML comments such as <!--qv--> and <!--t=8--> marked component boundaries and identified the text nodes that signals should update. Those comments were part of how rendering worked, not just something visible in the page's markup.

That representation needed a single ordered write pass, with CPU and memory overhead attached. It also ruled out out-of-order streaming. A slow fetch blocked everything after it. In v2, the comment markers are gone; state and virtual-node information sit instead in compressed <script type="qwik/state"> and <script type="qwik/vnode"> blocks at the end of the document.

I wouldn't judge this change by how tidy the HTML looks. The part that matters to me is that Qwik no longer has the same ordered-write constraint, which opens up a different way to arrange independently loading regions. Rather than asking whether every region can finish together, I'd ask a more awkward question: which content actually deserves to hold up the response?

For a newsroom interface, I'd start with a page containing essential editorial content and a slower supporting panel. I'd want the editor to get on with the main task without waiting for information that's useful but not immediately necessary. That's the kind of page I'd choose for a test. It isn't a claim that I've deployed Qwik in our CMS, or that I've already proved the benefit for that workflow.

Streaming boundaries are explicit and experimental

Out-of-order HTML streaming is experimental in this release. Slow regions can be wrapped in <Pending> and <Catch> boundaries; the server sends the rest of the page immediately and streams the real content later in the same response. A small inline script then swaps that content into place. The boundary makes the wait explicit without making the rest of the page wait too.

To opt in, the configuration in vite.config.ts is:

qwikVite({ experimental: ['pendingBoundary', 'catchBoundary', 'blockSSR'] })

I'd leave that opt-in out of the initial migration. First I'd establish that the application still behaves correctly after the package and API changes. Then I'd enable streaming on a route chosen for that purpose. Combining the two would put a rendering regression and an async-boundary mistake in the same debugging session, and I'd rather not have to untangle those at once.

Boundary placement is where I'd spend most of the design time. Information needed for the primary action belongs together; supporting content that can arrive later is a candidate for a separate boundary. I wouldn't split a page just because the component tree offers a convenient place to do it. While the delayed region is still unresolved, is the partial page useful? Is it understandable? Those would be my acceptance criteria.

The benchmark gain needs a workload beside it

In Qwik's internal runs of js-framework-benchmark, v2 recorded a weighted geometric mean of 1.23 times slower than vanilla JavaScript. For comparison, the figures were 1.25x for Vue 3.5, 1.42x for Angular 22, 1.53x for React 19 with the compiler, and 2.59x for Qwik v1.

Those results make me want to investigate the reactivity rewrite. They don't give me a framework-selection scorecard. These are Qwik's internal benchmark results, and I wouldn't turn the gaps between those figures into an expected improvement for a production page. I'd be especially wary of doing that for a page whose main delay is a data dependency rather than the work being compared here.

A walkthrough that built the same starter against both versions found that server-rendered HTML went from 60 comments to zero. The JavaScript required before interactivity dropped from 59KB to 9KB. Total bundle size grew, though. I wouldn't tuck that last detail away: it matters to my evaluation just as much as the smaller amount required before the page becomes interactive.

I'd measure initial interaction separately from the rest of a representative session. In an editorial tool, that means opening the page, using the primary controls, and moving into the next task—not stopping the test as soon as the first interaction works. Less JavaScript before interactivity would be welcome. Before calling it an improvement for that workflow, I'd still want to understand what the larger total bundle means across the session.

Migrating an existing Qwik application without mixing variables

The Qwik team's description of the breaking changes is “small,” and an automated migration command is available. That command also handles the move to the package names @qwik.dev/core and @qwik.dev/router, rather than leaving that part of the migration to a separate manual pass:

pnpm qwik migrate-v2

For a separate evaluation project, I'd use the release-candidate scaffold command:

pnpm create qwik@rc

I'd use the existing application to answer compatibility questions and the scaffold to isolate behavior I don't yet understand. A clean starter isn't enough to make my migration decision. I want the routes, state transitions, and loading behavior that make the actual application difficult to maintain in the first place. Those are the parts I'd need to see working after the change.

Capture the current rendering contract

Before touching the migration, I'd record what selected routes render, which interactions change state, and what users see while data is pending or unavailable. I'd include both a route with meaningful signal updates and one with a slow dependency. Downloaded JavaScript belongs in that baseline, but so does behavior. I don't want a faster result to quietly excuse content that has gone missing.

I'd use the same discipline as when testing a prerelease runtime away from production: isolate the change, then define what must remain true. That also means keeping the initial migration diff narrow. Component cleanup and a redesign can wait; I wouldn't combine either with the work of finding out whether the migration itself is correct.

Review async behavior after the automated migration

useComputed$ now accepts async functions, replacing <Resource>. I'd inspect the migrated async paths myself. A command finishing successfully doesn't prove that every loading and failure state is still appropriate. I'd follow the sequence the user sees: pending content, completed content, and the response the route is meant to give when something fails. That's the behavior I want to preserve, not merely a successful migration run.

Only then would I enable the experimental streaming configuration on the selected route and deliberately delay its supporting data. I'd check that useful content arrives independently, that the delayed region eventually appears, and that its controls work once it does. I'd make the request fail as well. Testing only a successful response would leave out a part of the async behavior I had just taken the trouble to review.

Validate the response path used in deployment

I wouldn't stop at a local streaming demonstration. I'd test through the deployment path I actually intended to use and ask whether the browser receives useful content before the slow region completes. That's the test. A final page can look correct without answering that question, so a screenshot of the completed page wouldn't be enough for me to call the streaming check successful.

For repeatable comparisons, I'd borrow the idea of a replay-safe regression boundary. I'd use controlled inputs and isolate actions that shouldn't be repeated against live systems. Before drawing conclusions from timings, I'd compare the same application behavior across versions. Otherwise, I wouldn't be satisfied that the numbers were answering the question I set out to test.

Loader caching deserves its own review

Route loaders gain individual JSON endpoints with cacheControl and eTag options. Browsers can cache those loaders individually, and <Link> can prefetch data on hover. I'd review that separately from comment removal. Here my concern changes: I'm asking how fresh the data needs to be, not how Qwik represents the page's rendering state.

For an editorial workflow, I'd classify each candidate loader by how current its result needs to be. Reference information and actively edited content wouldn't automatically get the same caching decision from me. I'd test returning to a route after a change, and I'd test hovering over a link without following it. Both belong in the evaluation, not just the straightforward case of opening a route and reading its data.

I'd also ask what happens to my expectations between hover and navigation: is the prefetched result still appropriate when the user eventually follows the link? These are application-level acceptance questions. The new options don't promise to answer them automatically. I'd settle the expected behavior first and then use the available cache controls to pursue it, rather than letting the options decide the behavior for me.

Should an existing React app move to Qwik?

I wouldn't move a working React or Next.js application on the strength of these benchmark figures alone. The release adds reactify$ for embedding Qwik components inside React trees, and that makes a contained evaluation more interesting to me than a wholesale rewrite. I'd still need evidence from the actual interaction I wanted to improve. A benchmark comparison wouldn't stand in for that evidence.

Other additions include the worker$ primitive for Web Workers, server-only *.server.ts files, and HMR that preserves signal and store values across edits. Unless one directly addressed the problem under investigation, I'd keep it out of the first streaming experiment. I want an evaluation to answer a narrow question well, not leave me sorting through several changes to work out which one mattered.

Streaming does not remove the slow dependency

My main caution is simple. Letting other content proceed is not the same thing as making the delayed work faster. If someone opened the page specifically for the delayed region, I'd still prioritize investigating that dependency. Whether an early shell is useful is a product decision. Adding a boundary doesn't automatically make that shell worth showing, and I wouldn't treat its early arrival as the answer by itself.

I also wouldn't assume experimental streaming is ready for every production route just because the migration is automated. Those are separate claims. The release candidate gives me something concrete to test, but it doesn't replace checks for loading behavior, failures, caching, or actual interaction. I'd still want those checks even after an uneventful migration and a streaming demonstration that looked right.

For a satisfied React team without the ordered-rendering problem, I'd wait for a workload-specific reason to switch. For an existing Qwik application, especially one constrained by ordered rendering, I'd choose a contained evaluation. Removing that rendering constraint is the valuable change here, but I wouldn't turn it into a broader architecture decision yet. I'd take a real page and prove that the change improves it first.

Sources

Qwik 2.0 RC: Replaces HTML Comment Markers for Faster Reactivity and Out-of-Order Streaming

This is the source this article is based on. Many articles on this blog are drafted with AI and checked against their source automatically; the editorial policy explains how, and how to report a mistake.

Frequently asked

Is Qwik 2.0 available as a stable release?

The release covered here is @qwik.dev/[email protected], published on October 1, 2026. It is a release candidate, and out-of-order streaming is experimental.

How do I migrate an existing Qwik application?

The migration command is pnpm qwik migrate-v2. It also handles the move to @qwik.dev/core and @qwik.dev/router. I'd validate existing rendering and async behavior before separately enabling experimental streaming.

Does Qwik 2 reduce the total JavaScript bundle?

Not necessarily. A same-starter comparison found JavaScript required before interactivity fell from 59KB to 9KB, while total bundle size grew. I'd measure both initial interaction and the broader session.

Can Qwik components run inside a React application?

The release adds reactify$ for embedding Qwik components inside React trees. I'd use that as a possible route for a contained evaluation, rather than treating it as a reason to rewrite an existing application.

Deepak Kumar

Written by

Deepak Kumar

Sr Software Engineer at India Today Group | Aaj Tak · MERN Stack · Generative AI

I build production web applications end to end — React and Next.js on the front, Node.js behind them — and I care most about the parts that only show up under load. I write here about what those systems actually do once real traffic hits them. Hiring a JavaScript developer in India? Here is how I work.

Weekly newsletter

Liked this? Get the next one by email

One short email a week with new articles on React, Node.js, TypeScript and AI engineering. No spam. Unsubscribe in one click.

By subscribing you agree to the privacy policy · About the newsletter.

Further reading

Related tutorials from ByteMuni, my developer publication.

Message me