The use of useState and useEffect hooks in the IDVerificationContextProvider and VerificationContextProvider that were unnecessary was triggering many extra re-renders and inappropriate renders, causing a UI flicker across multiple re-renders.
5 lines
158 B
JavaScript
5 lines
158 B
JavaScript
export const IDLE_STATUS = 'idle';
|
|
export const LOADING_STATUS = 'loading';
|
|
export const SUCCESS_STATUS = 'success';
|
|
export const FAILURE_STATUS = 'failure';
|