MCPcopy Create free account
hub / github.com/Lobos/react-ui / standardReleaser

Function standardReleaser

docs/lib/react.js:3659–3666  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

3657};
3658
3659var standardReleaser = function (instance) {
3660 var Klass = this;
3661 !(instance instanceof Klass) ? "development" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : invariant(false) : void 0;
3662 instance.destructor();
3663 if (Klass.instancePool.length < Klass.poolSize) {
3664 Klass.instancePool.push(instance);
3665 }
3666};
3667
3668var DEFAULT_POOL_SIZE = 10;
3669var DEFAULT_POOLER = oneArgumentPooler;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…