From 4034194ad3d84a54349c870a0444f4d49c1016b2 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 18 Oct 2021 16:37:59 +0400 Subject: [PATCH] Added comment about leftover emited event in the routes module refs https://linear.app/tryghost/issue/CORE-104/decouple-frontend-routing-events-from-urlserver-events - The note says it all, adding a memo for future us when we get around cleaning up all events --- core/frontend/services/routing/bootstrap.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/frontend/services/routing/bootstrap.js b/core/frontend/services/routing/bootstrap.js index 919e8e7916..66600021c7 100644 --- a/core/frontend/services/routing/bootstrap.js +++ b/core/frontend/services/routing/bootstrap.js @@ -43,6 +43,8 @@ const init = ({start = false, routerSettings, apiVersion, urlService}) => { registry.resetAllRouters(); registry.resetAllRoutes(); + // NOTE: this event could become an "internal frontend" in the future, it's used has been kept to prevent + // from tying up this module with sitemaps events.emit('routers.reset'); siteRouter = new ParentRouter('SiteRouter');