MCPcopy
hub / github.com/single-spa/single-spa / finishUnloadingApp

Function finishUnloadingApp

src/lifecycles/unload.js:98–113  ·  view source on GitHub ↗
(app, unloadInfo)

Source from the content-addressed store, hash-verified

96}
97
98function finishUnloadingApp(app, unloadInfo) {
99 delete appsToUnload[toName(app)];
100
101 // Unloaded apps don't have lifecycles
102 delete app.bootstrap;
103 delete app.mount;
104 delete app.unmount;
105 delete app.unload;
106
107 app.status = NOT_LOADED;
108
109 /* resolve the promise of whoever called unloadApplication.
110 * This should be done after all other cleanup/bookkeeping
111 */
112 unloadInfo.resolve();
113}
114
115function errorUnloadingApp(app, unloadInfo, err) {
116 delete appsToUnload[toName(app)];

Callers 1

toUnloadPromiseFunction · 0.85

Calls 1

toNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…