Files
boc/landvex/node_modules/react-toastify/dist/hooks/useKeeper.d.ts
T

8 lines
265 B
TypeScript
Raw Normal View History

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