gatsby-plugin-transitions
Version:
Gatsby-plugin for animated page-transitions.
12 lines (9 loc) • 305 B
JavaScript
exports.shouldUpdateScroll = ({
routerProps: { location },
getSavedScrollPosition
}) => {
// const currentPosition = getSavedScrollPosition(location)
// const queriedPosition = getSavedScrollPosition({ pathname: `/random` })
// window.scrollTo(...(currentPosition || [0, 0]))
return false
}