MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / QueueRefOp

Function QueueRefOp

pkg/vdom/vdom.go:428–440  ·  view source on GitHub ↗
(ctx context.Context, ref *VDomRef, op VDomRefOperation)

Source from the content-addressed store, hash-verified

426}
427
428func QueueRefOp(ctx context.Context, ref *VDomRef, op VDomRefOperation) {
429 if ref == nil || !ref.HasCurrent {
430 return
431 }
432 vc := getRenderContext(ctx)
433 if vc == nil {
434 panic("QueueRefOp must be called within a component (no context)")
435 }
436 if op.RefId == "" {
437 op.RefId = ref.RefId
438 }
439 vc.Root.QueueRefOp(op)
440}
441
442func depsEqual(deps1 []any, deps2 []any) bool {
443 if len(deps1) != len(deps2) {

Callers

nothing calls this directly

Calls 2

getRenderContextFunction · 0.85
QueueRefOpMethod · 0.45

Tested by

no test coverage detected