MCPcopy Create free account
hub / github.com/ctrlplusb/react-injectables / runInjections

Method runInjections

src/InjectablesProvider.js:57–70  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

55 }
56
57 runInjections(args) {
58 const { registration } = args;
59 const { injectables, injections } = registration;
60
61 const elements = compose(
62 filter(x => x !== null && x !== undefined),
63 map(x => x.inject()),
64 uniqBy(`injectorId`)
65 )(injections);
66
67 injectables.forEach(injectable => {
68 injectable.receive(elements);
69 });
70 }
71
72 removeRegistration(args) {
73 const { registration } = args;

Callers 5

registerInjectableMethod · 0.95
registerInjectorMethod · 0.95
updateInjectorMethod · 0.95
removeInjectorMethod · 0.95

Calls 4

composeFunction · 0.90
filterFunction · 0.90
mapFunction · 0.90
uniqByFunction · 0.90

Tested by

no test coverage detected