Don't trigger onRouteUpdate on hash updates #2302
Labels
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
type: question or discussion
Issue discussing or asking a question about Gatsby
I export an
onRouteUpdate
fromgatsby-browser.js
like so:This works fine, but when there are anchor links on a page, it fires every time one of them is clicked.
I tried just firing the
page()
onaction === 'PUSH'
route updates, but that blocks the event on all initial page loads.Any way to remove anchor link events from this tracking?
The text was updated successfully, but these errors were encountered: