magento-research / peregrine

(Defunct) Moved to https://github.com/magento-research/pwa-studio
Open Software License 3.0
29 stars 1 forks source link

Make the "Loading" view configurable #40

Closed zetlen closed 6 years ago

zetlen commented 6 years ago

This issue is a:

[ ] Bug [x] Feature suggestion [ ] Other

Description:

MagentoRouter renders a hardcoded "Loading" view while it is resolving the route. This must be configurable by the developer.

Environment and steps to reproduce

OS: Any

Magento 2 version: Any

Steps to Reproduce:

  1. Configure a PWA with Peregrine, Buildpack, and a Magento 2 store.
  2. Launch the development server with npm start.
  3. Observe the hardcoded and unstyled "Loading...".

Expected result:

A loading screen of your choosing while the URL resolves.

Possible solutions:

Currently, MagentoRouter is private. The Peregrine constructor imports and uses it directly as the child of the Redux Provider.

Additional information:

PWAStudioBot commented 6 years ago

This issue was moved to magento-research/pwa-studio#14