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

Function UseRenderTs

tsunami/app/hooks.go:94–100  ·  view source on GitHub ↗

UseRenderTs returns the timestamp of the current render. This hook must be called within a component context.

()

Source from the content-addressed store, hash-verified

92// UseRenderTs returns the timestamp of the current render.
93// This hook must be called within a component context.
94func UseRenderTs() int64 {
95 rc := engine.GetGlobalRenderContext()
96 if rc == nil {
97 panic("UseRenderTs must be called within a component (no context)")
98 }
99 return engine.UseRenderTs(rc)
100}
101
102// UseResync returns whether the current render is a resync operation.
103// Resyncs happen on initial app loads or full refreshes, as opposed to

Callers

nothing calls this directly

Calls 2

GetGlobalRenderContextFunction · 0.92
UseRenderTsFunction · 0.92

Tested by

no test coverage detected