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

fix: do not block navigation to current url #19730

Merged
merged 8 commits into from
Jul 31, 2024
Merged

Conversation

tepi
Copy link
Contributor

@tepi tepi commented Jul 29, 2024

Lets navigation cause server round-trip, when navigation is triggered by clicking a link.

Fixes #19635

@tepi tepi marked this pull request as draft July 29, 2024 12:11
Copy link

github-actions bot commented Jul 29, 2024

Test Results

1 129 files  +1  1 129 suites  +1   1h 20m 19s ⏱️ -57s
7 308 tests +1  7 258 ✅ +1  50 💤 ±0  0 ❌ ±0 
7 627 runs   - 7  7 567 ✅  - 7  60 💤 ±0  0 ❌ ±0 

Results for commit 7d41e74. ± Comparison against base commit f81d6bd.

♻️ This comment has been updated with latest results.

@tepi tepi requested review from caalador and tltv July 29, 2024 15:27
@tepi tepi marked this pull request as ready for review July 30, 2024 07:52
@caalador
Copy link
Contributor

Perhaps we should add the TestView from the issue with a RouterLink targeting self and use a messageList (like we have in DomEventFilterView) and check that messages are added correctly so that it is not broken by mistake later on.

@tepi
Copy link
Contributor Author

tepi commented Jul 30, 2024

Added test to check correct navigation events happening

Copy link

sonarcloud bot commented Jul 31, 2024

@caalador caalador merged commit 58b9432 into main Jul 31, 2024
25 of 26 checks passed
@caalador caalador deleted the do-not-block-nav-to-current branch July 31, 2024 09:23
vaadin-bot pushed a commit that referenced this pull request Jul 31, 2024
Lets navigation cause server round-trip, when navigation is triggered by clicking a link.

Fixes #19635
vaadin-bot added a commit that referenced this pull request Jul 31, 2024
Lets navigation cause server round-trip, when navigation is triggered by clicking a link.

Fixes #19635

Co-authored-by: Teppo Kurki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React Router blocks navigation to the current view
4 participants