MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / assertNotReentrant

Function assertNotReentrant

packages/core/src/app/createApp/guards.ts:43–47  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

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.`;

Callers

nothing calls this directly

Calls 1

throwCodeFunction · 0.85

Tested by

no test coverage detected