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

Method connectContextForScope

src/core/module.ts:32–36  ·  view source on GitHub ↗
(scope: Scope)

Source from the content-addressed store, hash-verified

30 }
31
32 connectContextForScope(scope: Scope) {
33 const context = this.fetchContextForScope(scope)
34 this.connectedContexts.add(context)
35 context.connect()
36 }
37
38 disconnectContextForScope(scope: Scope) {
39 const context = this.contextsByScope.get(scope)

Callers 2

scopeConnectedMethod · 0.80
connectModuleMethod · 0.80

Calls 3

fetchContextForScopeMethod · 0.95
addMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected