UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

15 lines 415 B
/** * Hook for triggering a page refresh. Returns a callback function. * * The callback invalidates all queries and refetches the active ones. * Any component depending on react-query data will be re-rendered. * * @example * * const refresh = useRefresh(); * const handleClick = () => { * refresh(); * }; */ export declare const useRefresh: () => () => void; //# sourceMappingURL=useRefresh.d.ts.map