Variable: UI_DELAYS
constUI_DELAYS: {LOADING_BUTTON:100;LOADING_OVERLAY:100;STATE_UPDATE_DEFER:0; }
Defined in: src/constants.ts:376
UI delays and timing to prevent flashing and improve UX.
Type Declarationโ
LOADING_BUTTONโ
readonlyLOADING_BUTTON:100=100
Delay before showing loading spinners in milliseconds
LOADING_OVERLAYโ
readonlyLOADING_OVERLAY:100=100
Delay before showing loading overlay in milliseconds
STATE_UPDATE_DEFERโ
readonlySTATE_UPDATE_DEFER:0=0
Minimal delay to defer state updates in useEffect cleanup.
Remarksโ
Used to comply with React best practices by avoiding direct setState calls in useEffect. The 0ms delay defers execution to the next tick of the event loop.
Remarksโ
These delays prevent UI flickering for operations that complete quickly while still providing feedback for longer operations.