Files
animethemes-web/gatsby-browser.js
T
Manuel S 737c7b9473 #13 feat: Added home page (#69)
* Added random theme and current season functionality.
  * These were also added to the navigation.
* The new home page replaces the old index ("/") page which was now moved to "/dev".
* Anime on the series page are now sorted by their premiere date.
* Adjusted database and API queries according to changes on the back-end.
2021-08-20 02:34:21 +02:00

7 lines
165 B
JavaScript

export function shouldUpdateScroll({
routerProps,
prevRouterProps
}) {
return routerProps?.location?.pathname !== prevRouterProps?.location?.pathname;
}