How to use the @magento/peregrine/lib/store/actions/app.setOnline function in @magento/peregrine

To help you get started, we’ve selected a few @magento/peregrine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Jordaneisenburger / fallback-studio / src / example-company / example-shop / src / index.js View on Github external
window.addEventListener('online', () => {
    store.dispatch(app.setOnline());
});
window.addEventListener('offline', () => {
github Jordaneisenburger / fallback-studio / src / pwa-studio / packages / venia-concept / src / index.js View on Github external
window.addEventListener('online', () => {
    store.dispatch(app.setOnline());
});
window.addEventListener('offline', () => {