Variable: UI_DELAYS
const UI_DELAYS: {
LOADING_BUTTON: 100;
LOADING_OVERLAY: 100;
STATE_UPDATE_DEFER: 0;
};
Defined in: src/constants.ts:357
UI delays and timing to prevent flashing and improve UX.
Type Declarationโ
LOADING_BUTTONโ
readonly LOADING_BUTTON: 100 = 100;
Delay before showing loading spinners in milliseconds
LOADING_OVERLAYโ
readonly LOADING_OVERLAY: 100 = 100;
Delay before showing loading overlay in milliseconds
STATE_UPDATE_DEFERโ
readonly STATE_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.