Yes
Can you also reproduce the problem with npm 4.x?Yes
Which terms did you search for in User Guide?progressive web app service workers
Environmentnode -v
: 8.4.0npm -v
: 5.6.0yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected): 1.0.17Then, specify:
react-loadable
to code-split a certain React component on the pageThe new version of the code-splitted component should be loaded correctly.
Actual BehaviorThe installed service worker tries to fetch the old component chunk instead of the new one, resulting in a failure to load the new chunk. This is because the hash has changed since the last time the service worker was installed. Because of this react-loadable
interprets the error and refuses to display the new page, resulting in a blank page.
This is less than ideal, and the only thing I could come up is to force a reload on the homepage. This will trigger the new service worker to be installed which results in the correct component/chunk being loaded.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4