fix(nuxt): return global route for useRoute in detached effect scope - #35659
#35659Merged
danielroe merged 4 commits intoJul 18, 2026
nuxt:mainnuxt/nuxt:mainfrom
KealanAU:fix/18903-useroute-detached-scopeKealanAU/nuxt:fix/18903-useroute-detached-scopeCopy head branch name to clipboard
Merged
fix(nuxt): return global route for useRoute in detached effect scope#35659danielroe merged 4 commits intonuxt:mainnuxt/nuxt:mainfrom KealanAU:fix/18903-useroute-detached-scopeKealanAU/nuxt:fix/18903-useroute-detached-scopeCopy head branch name to clipboard
useRoute in detached effect scope#35659danielroe merged 4 commits into
nuxt:mainnuxt/nuxt:mainfrom
KealanAU:fix/18903-useroute-detached-scopeKealanAU/nuxt:fix/18903-useroute-detached-scopeCopy head branch name to clipboard
Conversation
@nuxt/kit
@nuxt/nitro-server
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
Merging this PR will not alter performance
Comparing Footnotes
|
KealanAU
force-pushed
the
fix/18903-useroute-detached-scope
branch
from
July 18, 2026 19:49
e6e03ce to
606989f
Compare
KealanAU
marked this pull request as ready for review
July 18, 2026 20:18
Contributor
Author
This comment has been minimized.
This comment has been minimized.
danielroe
approved these changes
Jul 18, 2026
Merged
18 tasks
danielroe
pushed a commit
that referenced
this pull request
Jul 23, 2026
#35659) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
danielroe
pushed a commit
that referenced
this pull request
Jul 23, 2026
#35659) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This was referenced Jul 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🔗 Linked issue
resolves #18903
📚 Description
useRoute()called inside a detached effect scope (e.g. VueUse'screateSharedComposable) injects the per-page route provided byRouteProvider, which freezes once its page fork is no longer active — so the shared composable's route never updates after navigation.useRoutenow checks whether the current effect scope is (a descendant of) the component's scopeuseNuxtApp()._route, matching vue-router behaviourmain)