[PR #502] [MERGED] fix: useSelectedLayoutSegment in dev #624

Closed
opened 2026-05-06 13:09:09 +02:00 by BreizhHardware · 0 comments

📋 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: mainHead: 3-12-useSelectedLayoutSegment


📝 Commits (9)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/502 **Author:** [@hyoban](https://github.com/hyoban) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@james-elicx](https://github.com/james-elicx) **Base:** `main` ← **Head:** `3-12-useSelectedLayoutSegment` --- ### 📝 Commits (9) - [`4d52854`](https://github.com/cloudflare/vinext/commit/4d528547392e3d43c26998c61c859ea7ed6df2f4) fix: can not get selected layout segment - [`328f526`](https://github.com/cloudflare/vinext/commit/328f526b14ae3f747fb523ad1ac6a9ffaa1abdce) Update - [`c820e23`](https://github.com/cloudflare/vinext/commit/c820e23f4f60aa40590469f4a3a10cddb252bb28) Update - [`136633b`](https://github.com/cloudflare/vinext/commit/136633b239c66cffa9bc89f19fe8e87da028f95e) Revert - [`e99c01e`](https://github.com/cloudflare/vinext/commit/e99c01e48e5b1f1c932fd7e7cc80f4a8eef577d5) Revert "Revert" - [`b55dd7d`](https://github.com/cloudflare/vinext/commit/b55dd7d9aca47f10a2667540666ad41f7e568d4f) Update - [`188f73d`](https://github.com/cloudflare/vinext/commit/188f73d26fc7b51c19f5cd53fe174b8e8763bd01) Update - [`e6e1ab4`](https://github.com/cloudflare/vinext/commit/e6e1ab4a8c9603007b3fc87aa1d3dd7a16f5a7a8) Update - [`3c47878`](https://github.com/cloudflare/vinext/commit/3c47878b032b82b8f5adc8cc5d48017d140f4961) Updated ### 📊 Changes **2 files changed** (+89 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/shims/navigation.ts` (+33 -9) 📝 `tests/shims.test.ts` (+56 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:09:09 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#624
No description provided.