Skip to content

docs: add design document for precommit handler integration#136

Merged
uhyo merged 2 commits intomasterfrom
claude/design-navigation-api-router-8QwgE
Feb 27, 2026
Merged

docs: add design document for precommit handler integration#136
uhyo merged 2 commits intomasterfrom
claude/design-navigation-api-router-8QwgE

Conversation

@uhyo
Copy link
Owner

@uhyo uhyo commented Feb 27, 2026

Add a design document exploring how to integrate the Navigation API's
precommitHandler feature into @funstack/router. Covers route-level
precommit functions, global onPrecommit callback, execution semantics,
interaction with existing features, and browser compatibility.

https://claude.ai/code/session_01VQssND6WbN5jHEqYT1kWGj

Add a design document exploring how to integrate the Navigation API's
precommitHandler feature into @funstack/router. Covers route-level
precommit functions, global onPrecommit callback, execution semantics,
interaction with existing features, and browser compatibility.

https://claude.ai/code/session_01VQssND6WbN5jHEqYT1kWGj
…level execution

- Remove the proposed `onPrecommit` Router prop; users can register
  global precommit handlers via the existing `onNavigate` callback
  using `event.intercept({ precommitHandler })`.
- Change execution model from deepest-match-only to all-matches
  sequential (parent → child), with short-circuiting on redirect.
- Add nested auth guard example and contrast with action semantics.
- Reduce files-to-change footprint (no Router/Adapter signature changes).

https://claude.ai/code/session_01VQssND6WbN5jHEqYT1kWGj
@uhyo uhyo merged commit 888f6d7 into master Feb 27, 2026
1 check passed
@uhyo uhyo deleted the claude/design-navigation-api-router-8QwgE branch February 27, 2026 13:52
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