diff --git a/src/common/loader.js b/src/common/loader.js index 19a1513a..69d8f7ce 100644 --- a/src/common/loader.js +++ b/src/common/loader.js @@ -124,12 +124,11 @@ export function createLoader(config) { context: err, throw: true, }); - }); - - if (item.cid === loadedCid) return; - - loadedCid = item.cid ?? null; - config.render(item); + }).then(() => { + if (item.cid === loadedCid) return; + loadedCid = item.cid ?? null; + config.render(item); + }) }); }