From 59693bba48bad4ab0f983f9c736793ed304fed29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 10 Nov 2018 18:11:30 +0100 Subject: [PATCH] fix: fix loadableReady --- examples/server-side-rendering/src/server/main.js | 2 +- packages/component/src/loadableReady.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/server-side-rendering/src/server/main.js b/examples/server-side-rendering/src/server/main.js index 196cf329..42522a1a 100644 --- a/examples/server-side-rendering/src/server/main.js +++ b/examples/server-side-rendering/src/server/main.js @@ -65,4 +65,4 @@ ${webExtractor.getStyleTags()} }), ) -app.listen(8000, () => console.log('Server started http://localhost:8000')) +app.listen(9000, () => console.log('Server started http://localhost:9000')) diff --git a/packages/component/src/loadableReady.js b/packages/component/src/loadableReady.js index a3da535c..f44f129c 100644 --- a/packages/component/src/loadableReady.js +++ b/packages/component/src/loadableReady.js @@ -22,7 +22,7 @@ export default function loadableReady(done = () => {}) { return Promise.resolve() } - let resolved = true + let resolved = false return new Promise(resolve => { window.__LOADABLE_LOADED_CHUNKS__ = window.__LOADABLE_LOADED_CHUNKS__ || []