UNPKG

@greychrist/react-cache-buster

Version:

This package allows clients to automatically check the new version or git commit hash 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) 669 B
export function CacheBuster({ children, currentValue, propertyToCheck, isEnabled, isVerboseMode, loadingComponent, onCacheClear }: { children?: any; currentValue: any; propertyToCheck: any; isEnabled?: boolean; isVerboseMode?: boolean; loadingComponent?: any; onCacheClear: any; }): any; export namespace CacheBuster { export namespace propTypes { export const children: any; export const currentValue: any; export const propertyToCheck: any; export const isEnabled: any; export const isVerboseMode: any; export const loadingComponent: any; export const onCacheClear: any; } }