acud
Version:
acg react 组件库
8 lines (7 loc) • 352 B
TypeScript
/**
* @file cache errors status to avoid error blink
* @author chenqiang(chenqiang03)
*/
import * as React from 'react';
/** Always debounce error to avoid [error -> null -> error] blink */
export default function useCacheErrors(errors: React.ReactNode[], changeTrigger: (visible: boolean) => void, directly: boolean): [boolean, React.ReactNode[]];