Skip to content

refactor(router): bake boundary layout chains at build time#8771

Open
briancarbone wants to merge 2 commits into
QwikDev:build/v2from
briancarbone:refactor/bake-boundary-layouts
Open

refactor(router): bake boundary layout chains at build time#8771
briancarbone wants to merge 2 commits into
QwikDev:build/v2from
briancarbone:refactor/bake-boundary-layouts

Conversation

@briancarbone

Copy link
Copy Markdown

No description provided.

@briancarbone briancarbone requested a review from a team as a code owner June 25, 2026 18:52
@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bee1e85

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@briancarbone briancarbone marked this pull request as draft June 25, 2026 18:56
@briancarbone briancarbone force-pushed the refactor/bake-boundary-layouts branch 2 times, most recently from ba379cc to ef9002b Compare June 25, 2026 19:42
@pkg-pr-new

pkg-pr-new Bot commented Jun 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

@qwik.dev/core

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8771

@qwik.dev/router

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8771

eslint-plugin-qwik

npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8771

create-qwik

npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8771

@qwik.dev/optimizer

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/optimizer@8771

commit: bee1e85

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview ac0eb39

@briancarbone briancarbone marked this pull request as ready for review June 25, 2026 19:52

@wmertens wmertens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my phone, can't do a proper review yet, but could you add the route config as one of the SSG snapshot tests? Before this change. Then after the change we can easily see the effect

@briancarbone briancarbone force-pushed the refactor/bake-boundary-layouts branch 4 times, most recently from 9381c6d to ac0eb39 Compare June 26, 2026 16:57
Capture @qwik-router-config during the ssg-snapshot client build and compare it
to a committed golden (expected.config.txt). Route-trie changes — layouts,
404/error boundaries, loader placeholders — now surface as a reviewable diff
in the PR that makes them, addressing the review ask to see route-config effects.
`_4`/`_E` boundaries now carry their layout chain resolved at build time
and render it as-is on both a miss and a thrown error, replacing the
per-boundary runtime layout-snapshot machinery. Error boundaries follow
the same model as `_I`: a bare `error.tsx` renders in its layouts,
`error!.tsx` standalone, and `error@name.tsx` in the named layout.

Also fixes a pre-existing gap where a `[...rest]` node's own boundaries
and loaders were dropped on an empty-rest match.
@briancarbone briancarbone force-pushed the refactor/bake-boundary-layouts branch from ac0eb39 to bee1e85 Compare June 26, 2026 17:05
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.

2 participants