Stop calling onLoad
callback when a hash changes
#3155
Labels
stage: ready for work
The issue is reproducible and in scope
stale
no activity on this issue for a long period
type: breaking change
Requires a new major release version
In the browser, a
hashchange
event does not also fire theonload
event. In Cypress, if you visit a page and then visit a hash on that page, theonload
callback is called. This should be updated so that theonLoad
callback is not called when visiting a hash on the same page.To reproduce:
Currently,
onBeforeLoad
thenonLoad
is called from the first visit thenonLoad
is called from the second visit.After fixing, neither
onLoad
noronBeforeLoad
should be called.The text was updated successfully, but these errors were encountered: