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

Method getRegistration

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

Source from the content-addressed store, hash-verified

35 }
36
37 getRegistration(args) {
38 const { injectionId } = args;
39
40 let registration = find(
41 x => x.injectionId === injectionId
42 )(this.registrations);
43
44 if (!registration) {
45 registration = {
46 injectionId,
47 injectables: [],
48 injections: []
49 };
50
51 this.registrations.push(registration);
52 }
53
54 return registration;
55 }
56
57 runInjections(args) {
58 const { registration } = args;

Callers 6

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

Calls 1

findFunction · 0.90

Tested by

no test coverage detected