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

Method renderSimple

tsunami/engine/render.go:79–85  ·  view source on GitHub ↗

Pattern 2

(elem *vdom.VDomElem, comp **ComponentImpl, containingComp string, opts *RenderOpts)

Source from the content-addressed store, hash-verified

77
78// Pattern 2
79func (r *RootElem) renderSimple(elem *vdom.VDomElem, comp **ComponentImpl, containingComp string, opts *RenderOpts) {
80 if (*comp).RenderedComp != nil {
81 // Clear Comp since base elements don't use it
82 r.unmount(&(*comp).RenderedComp)
83 }
84 (*comp).Children = r.renderChildren(elem.Children, (*comp).Children, containingComp, opts)
85}
86
87// Pattern 3
88func (r *RootElem) renderComponent(cfunc any, elem *vdom.VDomElem, comp **ComponentImpl, opts *RenderOpts) {

Callers 1

renderMethod · 0.95

Calls 2

unmountMethod · 0.95
renderChildrenMethod · 0.95

Tested by

no test coverage detected