UpdateNotification

A snackbar that automatically displays when a new version of the service worker is available. By default the component only shows when the app is launched from the user's homescreen on android devices. Additonal props are spread to the underlying material-ui Snackbar component

Import
import UpdateNotification from 'react-storefront/UpdateNotification'

Props

NameTypeDefaultDescription
messagestring'An new version of this app is available.'

The message to display

reloadButtonTextstring'RELOAD'

The text for the reload button.

CSS API

You can override all the class names injected by Moov-PWA thanks to the classes property. This property accepts the following keys:

  • close