@lynx-js/web-core
Version:
This is an internal experimental package, do not use
9 lines • 354 B
JavaScript
import { disposeEndpoint } from '../../../endpoints.js';
export function registerDisposeHandler(rpc, nativeApp, destroyCard, callDestroyLifetimeFun) {
rpc.registerHandler(disposeEndpoint, () => {
const id = nativeApp.id;
callDestroyLifetimeFun(id);
destroyCard(id);
});
}
//# sourceMappingURL=registerDisposeHandler.js.map