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

Method incrementalRender

pkg/waveapp/waveapp.go:302–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300}
301
302func (c *Client) incrementalRender() (*vdom.VDomBackendUpdate, error) {
303 c.Root.RunWork()
304 renderedVDom := c.Root.MakeVDom()
305 if renderedVDom == nil {
306 renderedVDom = makeNullVDom()
307 }
308 return &vdom.VDomBackendUpdate{
309 Type: "backendupdate",
310 Ts: time.Now().UnixMilli(),
311 BlockId: c.RpcContext.BlockId,
312 RenderUpdates: []vdom.VDomRenderUpdate{
313 {UpdateType: "root", VDom: renderedVDom},
314 },
315 RefOperations: c.Root.GetRefOperations(),
316 StateSync: c.Root.GetStateSync(false),
317 }, nil
318}
319
320func (c *Client) RegisterUrlPathHandler(path string, handler http.Handler) {
321 c.UrlHandlerMux.Handle(path, handler)

Callers 1

VDomRenderCommandMethod · 0.45

Implementers 1

WshRouterpkg/wshutil/wshrouter.go

Calls 5

makeNullVDomFunction · 0.85
MakeVDomMethod · 0.80
GetStateSyncMethod · 0.80
RunWorkMethod · 0.45
GetRefOperationsMethod · 0.45

Tested by

no test coverage detected