MCPcopy
hub / github.com/wavetermdev/waveterm / getRenderContext

Function getRenderContext

pkg/vdom/vdom_root.go:372–378  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

370}
371
372func getRenderContext(ctx context.Context) *VDomContextVal {
373 v := ctx.Value(vdomContextKey)
374 if v == nil {
375 return nil
376 }
377 return v.(*VDomContextVal)
378}
379
380func callCFunc(cfunc any, ctx context.Context, props map[string]any) any {
381 rval := reflect.ValueOf(cfunc)

Callers 4

getHookFromCtxFunction · 0.85
UseIdFunction · 0.85
UseRenderTsFunction · 0.85
QueueRefOpFunction · 0.85

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected