UNPKG

react-iammolina-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.

21 lines (20 loc) 681 B
export function CacheBuster({ children, nowVersion, comparationVersion, isEnabled, isVerboseMode, loadingComponent, onCacheClear }: { children?: any; nowVersion?: any; comparationVersion?: any; isEnabled?: boolean; isVerboseMode?: boolean; loadingComponent?: any; onCacheClear?: () => any; }): any; export namespace CacheBuster { export namespace propTypes { export const children: any; export const nowVersion: any; export const comparationVersion: any; export const isEnabled: any; export const isVerboseMode: any; export const loadingComponent: any; export const onCacheClear: any; } }