mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
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:
parent
ced6119fc1
commit
4034194ad3
2
core/frontend/services/routing/bootstrap.js
vendored
2
core/frontend/services/routing/bootstrap.js
vendored
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user