@phurinat/react-cache-buster
Version:
This package allows clients to automatically check the new version when a new version is released in the production environment, and if a new version is published, clearing the cache and reload the page.
19 lines (18 loc) • 558 B
TypeScript
export function CacheBuster({ children, currentVersion, isEnabled, isVerboseMode, loadingComponent, onCacheClear }: {
children?: any;
currentVersion: any;
isEnabled?: boolean;
isVerboseMode?: boolean;
loadingComponent?: any;
onCacheClear: any;
}): any;
export namespace CacheBuster {
namespace propTypes {
const children: any;
const currentVersion: any;
const isEnabled: any;
const isVerboseMode: any;
const loadingComponent: any;
const onCacheClear: any;
}
}