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

Function UseResync

tsunami/app/hooks.go:106–112  ·  view source on GitHub ↗

UseResync returns whether the current render is a resync operation. Resyncs happen on initial app loads or full refreshes, as opposed to incremental renders which happen otherwise. This hook must be called within a component context.

()

Source from the content-addressed store, hash-verified

104// incremental renders which happen otherwise.
105// This hook must be called within a component context.
106func UseResync() bool {
107 rc := engine.GetGlobalRenderContext()
108 if rc == nil {
109 panic("UseResync must be called within a component (no context)")
110 }
111 return engine.UseResync(rc)
112}
113
114// UseEffect is the tsunami analog to React's useEffect hook.
115// It queues effects to run after the render cycle completes.

Callers

nothing calls this directly

Calls 2

GetGlobalRenderContextFunction · 0.92
UseResyncFunction · 0.92

Tested by

no test coverage detected