Slide 32
Slide 32 text
© LayerX Inc. 34
stopImmediatePropagation()
Next.js より先に addEventListener() して stopImmediatePropagation() で⽌める
同じ要素に後から追加された
Event Listenerを呼びださない
window.addEventLisnter("popstate", () => ...)
window.addEventLisnter("popstate", e => e.stopPropagation())
window.addEventLisnter("popstate", () => ...)
window.addEventLisnter("popstate", () => ...)
window.addEventLisnter("popstate", e => e.stopImmediatePropagation())
window.addEventLisnter("popstate", () => ...) ←Next.jsは呼ばれない