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

Method disconnectContextForScope

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

Source from the content-addressed store, hash-verified

36 }
37
38 disconnectContextForScope(scope: Scope) {
39 const context = this.contextsByScope.get(scope)
40 if (context) {
41 this.connectedContexts.delete(context)
42 context.disconnect()
43 }
44 }
45
46 private fetchContextForScope(scope: Scope): Context {
47 let context = this.contextsByScope.get(scope)

Callers 2

scopeDisconnectedMethod · 0.80
disconnectModuleMethod · 0.80

Calls 3

getMethod · 0.45
deleteMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected