UseRenderTs returns the timestamp of the current render. This hook must be called within a component context.
()
| 92 | // UseRenderTs returns the timestamp of the current render. |
| 93 | // This hook must be called within a component context. |
| 94 | func 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 |
nothing calls this directly
no test coverage detected