this.reload is not a function #65
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I click a link that I'm already on I get
this.reload is not a function546b7e309a/lib/proto/attach-link.js (L48)I'm using version 0.2.2 via npmgot the same problem.
should I submit a PR replacing
this.reload()forthis.location.reload()?not sure if this is the wanted behaviour for this. but it happens when I click to a
/link and I am at/. but even though, in this case, a reload doesn't seem to be the wanted behaviour.kinda confused on how I can help here 😕
Feel free to push any fix.
The idea of reload is that if you are on a page and click on the same page, if we do nothing, UX is going to be weird. That's why I added this behavior in the first place.
got it.
I've changed this, but feels weird to do a
window.location.reload()on a lib that is supposed to not reload the browser. maybe just areturn falseor something (which will also feel weird).I'm really not sure on how should be the behaviour :/
Default behavior is now back to normal (just pjax, as expected by most people). The option
currentUrlFullReloadwas ignored (regression of the 0.2 release). Things should be ok with 0.2.3