onRouteUpdate()

in website/snackPlayerInitializer.js [76:85]


    onRouteUpdate({location}) {
      // console.log('onRouteUpdate', {location});

      // TODO temporary, because onRouteUpdate fires before the new route renders...
      // see https://github.com/facebook/docusaurus/issues/3399#issuecomment-704401189
      setTimeout(() => {
        initSnackPlayers();
        setupTabPanelsMutationObservers();
      }, 0);
    },