(method: string)
| 41 | } |
| 42 | |
| 43 | function assertNotReentrant(method: string): void { |
| 44 | if (options.isInCommit() || options.isInRender() || options.getEventHandlerDepth() > 0) { |
| 45 | throwCode("ZRUI_REENTRANT_CALL", `${method}: re-entrant call`); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | function updateDuringRenderDetail(method: string): string { |
| 50 | return `${method}: called during render. Hint: This usually means an onPress/onChange callback calls app.update() synchronously during the render phase. Move state updates to event handlers or useEffect.`; |
nothing calls this directly
no test coverage detected