UNPKG

react-cache-refresh

Version:

A simple modern utility to clear cache and reload the application.

10 lines (9 loc) 385 B
import { ReactNode } from "react"; type CacheBusterProps = { readonly children: ReactNode; readonly loadingComponent?: ReactNode; readonly currentAppVersion: string; readonly hideConsoleLogs?: boolean; }; export declare const CacheBuster: ({ children, loadingComponent, currentAppVersion, hideConsoleLogs, }: CacheBusterProps) => ReactNode; export default CacheBuster;