feat: remove * and fix crash; refactor useParseRouter hook and add tests (#2780)
## Summary
- Refactor `useParseRouter` hook to improve code organization and
maintainability
- Add comprehensive unit tests for the `useParseRouter` hook covering
navigation state parsing, route matching, and edge cases
## Test plan
- Run `npm test` to verify all 842 tests pass
- The new tests in `src/__tests__/useParseRouter.test.ts` cover various
navigation scenarios
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2780"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
Co-authored-by:
Will Chen <willchen90@gmail.com>
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论