Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent context becomes undefined when child validateSearch fails and changes params #3170

Open
david-612 opened this issue Jan 14, 2025 · 0 comments

Comments

@david-612
Copy link

Which project does this relate to?

Router

Describe the bug

When the validateSearch in a route fails and changes the search params the inherited context is lost. This happens when coming from outside so it isnt a navigation triggered by the router itself.

Your Example Website or App

https://stackblitz.com/edit/github-yzwmzb18

Steps to Reproduce the Bug or Issue

  1. Run project
  2. Click the second link

Expected behavior

The expected outcome is that the link coming from the outside should behave the same as the link triggered by the router. The params should be modified since they are invalid but the context should remain.

Screenshots or Videos

No response

Platform

  • OS: Windows 10
  • Browser: Edge,Firefox
  • Version: Edge Version 131.0.2903.146 (Official build) (64-bit)

Additional context

No response

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

No branches or pull requests

1 participant