Skip to content

Add disableForTesting option to useNavigationGuard#58

Merged
ypresto merged 2 commits intomainfrom
feat/disable-for-testing
Feb 26, 2026
Merged

Add disableForTesting option to useNavigationGuard#58
ypresto merged 2 commits intomainfrom
feat/disable-for-testing

Conversation

@ypresto
Copy link
Copy Markdown
Member

@ypresto ypresto commented Feb 26, 2026

Summary

  • Add disableForTesting option to useNavigationGuard that makes the hook a complete no-op: no guard registered, no NavigationGuardProvider context required, active always false
  • Intended for test and storybook environments where the provider isn't set up
  • Bump version to 0.3.0

Test plan

  • pnpm build passes (no new type errors)
  • All 78 E2E tests pass across chromium, firefox, webkit

🤖 Generated with Claude Code

ypresto and others added 2 commits February 26, 2026 15:03
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ypresto ypresto merged commit 10f266b into main Feb 26, 2026
11 checks passed
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.

1 participant