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.
OptionallabelsLabels override (i18n).
OptionalonCalled on fetch / parse errors.
OptionalrecheckWhether to re-check on window focus / visibilitychange (when
the tab becomes visible).
OptionalsxMUI sx override.
OptionalvariantVisual variant. "icon" is a small IconButton (best for compact
toolbars); "button" is a labelled Button.
OptionalversionURL to poll for the server's current version.
Props for UpdateButton.