The problem was that I was using onPreRoute update but the timing of when this api is called has changed in Gatsby core. This meant some internal checks to prevent back button presses during animations were always failing.
I've switched to using window.addEventListener('popstate') and it seems to be nice and reliable 👍
This PR closes #236
The problem was that I was using onPreRoute update but the timing of when this api is called has changed in Gatsby core. This meant some internal checks to prevent back button presses during animations were always failing.
I've switched to using window.addEventListener('popstate') and it seems to be nice and reliable 👍