mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #502] [MERGED] fix: useSelectedLayoutSegment in dev #624
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#624
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/502
Author: @hyoban
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/12/2026
Merged by: @james-elicx
Base:
main← Head:3-12-useSelectedLayoutSegment📝 Commits (9)
4d52854fix: can not get selected layout segment328f526Updatec820e23Update136633bReverte99c01eRevert "Revert"b55dd7dUpdate188f73dUpdatee6e1ab4Update3c47878Updated📊 Changes
2 files changed (+89 additions, -9 deletions)
View changed files
📝
packages/vinext/src/shims/navigation.ts(+33 -9)📝
tests/shims.test.ts(+56 -0)📄 Description
It's a bit strange. I don't know why useSelectedLayoutSegment returns null during development, but everything works fine after building. So I tried this. Please correct me if I made any mistakes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.