UNPKG

@pixi/react

Version:

Write PixiJS applications using React declarative style.

19 lines (16 loc) 435 B
import { roots } from '../core/roots.mjs'; import { store } from '../store.mjs'; import { unmountRoot } from './unmountRoot.mjs'; "use strict"; function queueForUnmount(canvas) { const root = roots.get(canvas); if (root) { if (root.applicationState.isInitialised) { unmountRoot(root); } else { store.unmountQueue.add(root); } } } export { queueForUnmount }; //# sourceMappingURL=queueForUnmount.mjs.map