UNPKG

265 BTypeScriptView Raw
1/**
2 * `useKeeper` is a helper around `useRef`.
3 *
4 * You don't need to access the `.current`property to get the value
5 * If refresh is set to true. The ref will be updated every render
6 */
7export declare function useKeeper<T>(arg: T, refresh?: boolean): T;