MCPcopy Index your code
hub / github.com/angular/angularfire / ɵgetAllInstancesOf

Function ɵgetAllInstancesOf

src/core.ts:31–43  ·  view source on GitHub ↗
(identifier: string, app?: FirebaseApp)

Source from the content-addressed store, hash-verified

29}
30
31export const ɵgetAllInstancesOf = <T= unknown>(identifier: string, app?: FirebaseApp): T[] => {
32 const apps = app ? [app] : getApps();
33 const instances: any[] = [];
34 apps.forEach((app: FirebaseAppWithContainer) => {
35 const provider: any = app.container.getProvider(identifier as never);
36 provider.instances.forEach((instance: any) => {
37 if (!instances.includes(instance)) {
38 instances.push(instance);
39 }
40 });
41 });
42 return instances;
43};

Callers 15

constructorMethod · 0.85
messaging.tsFile · 0.85
constructorMethod · 0.85
database.tsFile · 0.85
constructorMethod · 0.85
auth.tsFile · 0.85
constructorMethod · 0.85
data-connect.tsFile · 0.85
constructorMethod · 0.85
performance.tsFile · 0.85
constructorMethod · 0.85
storage.tsFile · 0.85

Calls 2

pushMethod · 0.80
forEachMethod · 0.65

Tested by

no test coverage detected