Piplup
@piplup/cache-busterComponents

CacheBuster

Automatically reload your app when a new version is detected using the CacheBuster component.

CacheBuster is a convenience wrapper around the useReleaseStatus hook.

It automatically checks for new deployments and reloads the page when a new version is detected.

Basic usage

import { CacheBuster } from '@piplup/cache-buster';

function App() {
  return (
    <CacheBuster storageKey="RELEASE">
      <YourApp />
    </CacheBuster>
  );
}

Props

Prop

Type

See also

On this page