MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / injectEventPluginOrder

Function injectEventPluginOrder

code/styling/public/app.js:2041–2046  ·  view source on GitHub ↗

* Injects an ordering of plugins (by plugin name). This allows the ordering * to be decoupled from injection of the actual plugins so that ordering is * always deterministic regardless of packaging, on-the-fly injection, etc. * * @param {array} InjectedEventPluginOrder * @internal * @see {Even

(injectedEventPluginOrder)

Source from the content-addressed store, hash-verified

2039 * @see {EventPluginHub.injection.injectEventPluginOrder}
2040 */
2041function injectEventPluginOrder(injectedEventPluginOrder) {
2042 !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
2043 // Clone the ordering so it cannot be dynamically mutated.
2044 eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
2045 recomputePluginOrdering();
2046}
2047
2048/**
2049 * Injects plugins to be used by `EventPluginHub`. The plugin names must be

Callers

nothing calls this directly

Calls 2

invariantFunction · 0.70
recomputePluginOrderingFunction · 0.70

Tested by

no test coverage detected