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.
()
| 104 | // incremental renders which happen otherwise. |
| 105 | // This hook must be called within a component context. |
| 106 | func 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. |
nothing calls this directly
no test coverage detected