MCPcopy
hub / github.com/hotwired/stimulus / connectModule

Method connectModule

src/core/router.ts:118–122  ·  view source on GitHub ↗
(module: Module)

Source from the content-addressed store, hash-verified

116 // Modules
117
118 private connectModule(module: Module) {
119 this.modulesByIdentifier.set(module.identifier, module)
120 const scopes = this.scopesByIdentifier.getValuesForKey(module.identifier)
121 scopes.forEach((scope) => module.connectContextForScope(scope))
122 }
123
124 private disconnectModule(module: Module) {
125 this.modulesByIdentifier.delete(module.identifier)

Callers 1

loadDefinitionMethod · 0.95

Calls 3

getValuesForKeyMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected