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

Method RegisterComponent

tsunami/engine/rootelem.go:268–274  ·  view source on GitHub ↗
(name string, cfunc any)

Source from the content-addressed store, hash-verified

266}
267
268func (r *RootElem) RegisterComponent(name string, cfunc any) error {
269 if err := validateCFunc(cfunc); err != nil {
270 return err
271 }
272 r.CFuncs[name] = cfunc
273 return nil
274}
275
276func callVDomFn(fnVal any, data vdom.VDomEvent) {
277 if fnVal == nil {

Callers 1

registerComponentMethod · 0.45

Calls 1

validateCFuncFunction · 0.70

Tested by

no test coverage detected