Files
30-seconds-of-code/node_modules/ink/build/instances.js
2019-08-20 15:52:05 +02:00

15 lines
463 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// Store all instances of Ink (instance.js) to ensure that consecutive render() calls
// use the same instance of Ink and don't create a new one
//
// This map has to be stored in a separate file, because render.js creates instances,
// but instance.js should delete itself from the map on unmount
var _default = new WeakMap();
exports.default = _default;