Skip to content

feat: Add separate entry point for a Navigation API-driven router#139

Merged
rschristian merged 6 commits intomainfrom
feat/navigation-api
Apr 30, 2026
Merged

feat: Add separate entry point for a Navigation API-driven router#139
rschristian merged 6 commits intomainfrom
feat/navigation-api

Conversation

@rschristian
Copy link
Copy Markdown
Member

#75, but non-breaking

Diff to existing router, types, and tests is actually super minimal, though obviously we don't see it here as these are all new files. Quite pleased.

CC @sbesh91

@rschristian rschristian marked this pull request as ready for review April 14, 2026 02:15
Comment thread src/router-navigation-api.js
return {
url,
path,
query: Object.fromEntries(u.searchParams),
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.

We just need to add forward/back here

Copy link
Copy Markdown
Member Author

@rschristian rschristian Apr 15, 2026

Choose a reason for hiding this comment

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

Actually no, users are meant to use the global directly. We won't offer either utility.

it('should support navigating backwards and forwards', async () => {

Down the line the entire context can go away or just be kept internal, but that felt a bit breaking to do now. Would require users update a good size chunk of their apps, even if it's entirely opt-in.

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
@rschristian rschristian force-pushed the feat/navigation-api branch from 39b1d16 to 2295a6a Compare April 30, 2026 03:29
@rschristian rschristian merged commit 86a0bf8 into main Apr 30, 2026
1 check passed
@rschristian rschristian deleted the feat/navigation-api branch April 30, 2026 03:30
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