Skip to content

fix(router): don't resolve route loader to undefined on first SPA nav#8770

Open
briancarbone wants to merge 1 commit into
QwikDev:build/v2from
briancarbone:fix/loader-undefined-first-spa-nav
Open

fix(router): don't resolve route loader to undefined on first SPA nav#8770
briancarbone wants to merge 1 commit into
QwikDev:build/v2from
briancarbone:fix/loader-undefined-first-spa-nav

Conversation

@briancarbone

Copy link
Copy Markdown

No description provided.

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

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 03178b3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@qwik.dev/router Patch
eslint-plugin-qwik Patch
@qwik.dev/core Patch
create-qwik Patch
@qwik.dev/react Patch

Not sure what this means? Click here to learn what changesets are.

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

@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@8770

@qwik.dev/router

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

eslint-plugin-qwik

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

create-qwik

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

@qwik.dev/optimizer

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

commit: 03178b3

@briancarbone briancarbone marked this pull request as draft June 25, 2026 15:38
@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 03178b3

@briancarbone briancarbone force-pushed the fix/loader-undefined-first-spa-nav branch from c681c0c to b80c3c5 Compare June 25, 2026 15:41
@briancarbone briancarbone marked this pull request as ready for review June 25, 2026 15:52
@briancarbone briancarbone marked this pull request as draft June 26, 2026 22:32
@briancarbone briancarbone force-pushed the fix/loader-undefined-first-spa-nav branch from b80c3c5 to 3559b79 Compare June 27, 2026 00:56
@briancarbone briancarbone marked this pull request as ready for review June 27, 2026 01:09
The loader's loaderPaths entry isn't seeded on the first client
navigation to a route, so the signal computed to undefined instead of
fetching, crashing components that read .value. Fall back to the current
page path on the first read when no route path is available.
@briancarbone briancarbone force-pushed the fix/loader-undefined-first-spa-nav branch from 3559b79 to 03178b3 Compare June 27, 2026 01:31
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