Detects when a newer build of the running web app is available.
const { updateAvailable, applyUpdate } = useUpdateAvailable({ currentVersion: import.meta.env.VITE_BUILD_HASH,});if (updateAvailable) return <Button onClick={applyUpdate}>Update</Button>; Copy
const { updateAvailable, applyUpdate } = useUpdateAvailable({ currentVersion: import.meta.env.VITE_BUILD_HASH,});if (updateAvailable) return <Button onClick={applyUpdate}>Update</Button>;
Detects when a newer build of the running web app is available.