-
Notifications
You must be signed in to change notification settings - Fork 205
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
[Bug]: solid-router-integration: navigation to the same page causes duplication in the router #303
Comments
Here is workaround, I just added equality check to diff --git a/dist/index.js b/dist/index.js
index 185b386841dd6e7366403590da75419e7ccaf180..4711ec994aa2252267e3c8f49e9ba69ef29dac97 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2562,6 +2562,10 @@ class Ye {
if (!n && this.current === s)
return;
const r = this.current;
+ const isLikePrev = (prev, next) => prev.search === next.search && prev.pathname === next.pathname && prev.hash === next.hash
+ if (isLikePrev(s, r)) {
+ return
+ }
if (this.index !== t) {
const i = this._index;
this._index = t, this.attached && i > 0 != t > 0 && this.sync(); |
I don't really remember how it works in browser. Let's imagine, we are currently at the page We can probably make this behavior optional, providing some option like |
We can test it right here It's actually duplicates entry. You're right |
Seems like one more day in hookah bar should be spent. I will think about a better solution. Probably, adding Added this task to the internal dashboard. Will be back with solution soon |
Telegram Application
Telegram Desktop
Describe the Bug
Click to link of the same page causes duplication of history entry (you need to press back button a lot of times without any visual change)
To Reproduce
Expected Behavior
It must stay in the same history item
The text was updated successfully, but these errors were encountered: