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
This commit is contained in:
Naz 2021-10-18 16:37:59 +04:00 committed by naz
parent ced6119fc1
commit 4034194ad3

View File

@ -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');