I need to work with History API for an application. My problem is that some "home" jQuery plugins already implement an event for popstate
it is possible to have more than one popstate event for an unique view ?
I need to work with History API for an application. My problem is that some "home" jQuery plugins already implement an event for popstate
it is possible to have more than one popstate event for an unique view ?
I mistakenly used the following in two React components (Result: The second component overrides the behaviour of the first component, so it didn't trigger):
window.onpopstate = function (e) { /* Do something */ }
Instead I used the following:
window.addEventListener("popstate", /* Do something */ )
This seems to work fine for me.
Edit: Now with multiple events. For some reason Chrome won't fire twice the console log of the event though