OptionalcheckPolling interval in ms.
OptionalcurrentThe build hash baked into the running bundle (e.g. via Vite's
define injecting an environment variable). When provided, the
hook compares the polled version against this value, so a stale
tab is detected on the very first poll. When omitted, falls back
to anchoring on the first poll's value.
OptionalenabledWhether to enable polling. Set to false to disable.
OptionalonCalled on fetch / parse errors.
OptionalrecheckWhether to re-check on window focus / visibilitychange (when
the tab becomes visible).
OptionalversionURL to poll for the server's current version.
Options for useUpdateAvailable.