UNPKG

@ovine/core

Version:

Build flexible admin system with json.

14 lines (13 loc) 553 B
/** * https://github.com/podefr/react-debounce-render/blob/master/src/index.js * 防止组件短时间内连续并发渲染 */ import { DebounceSettings } from 'lodash'; declare function debounceRender<T>(ComponentToDebounce: T, wait?: number, setting?: DebounceSettings): T; declare type UseDebounceRenderOption = { getComponent: () => JSX.Element; wait?: number; setting?: DebounceSettings; }; export declare const useDebounceRender: (option: UseDebounceRenderOption, deeps: any[]) => JSX.Element | null; export default debounceRender;