-
Couldn't load subscription status.
- Fork 11
Description
Say I'm navigating between two react-router routes, A --> B.
Order of execution is roughly as follows:
- A's willTransitionFrom
- B's willTransitionTo (async load, go to step 3 via callback when complete)
- A's componentWillUnmount
- B's componentWillMount, render, ...etc
The proxy render logic calls renderUnavailable if the component has not yet loaded. In react-proxy-loader, this works because render can happen before the component is downloaded. However, with the new requirement of waiting for willTransitionTo, the component will always be loaded by the time render is called.
On slower connections, this results in a period of time where the page appears to hang while the new component is downloaded (no visual feedback to confirm user interaction).
Any thoughts on the best way to communicate this loading process?