@novely/core 0.36.0-beta.1 → 0.36.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1616,17 +1616,21 @@ var Novely = (() => {
1616
1616
  for (const [action3, ...props2] of collection) {
1617
1617
  checkAndAddToPreloadingList(action3, props2);
1618
1618
  }
1619
- const { preloadAudioBlocking, preloadImage } = renderer.misc;
1619
+ const { preloadAudioBlocking, preloadImageBlocking } = renderer.misc;
1620
1620
  ASSETS_TO_PRELOAD.forEach(async (asset) => {
1621
1621
  ASSETS_TO_PRELOAD.delete(asset);
1622
1622
  const type = await getResourseType(request, asset);
1623
1623
  switch (type) {
1624
1624
  case "audio": {
1625
- preloadAudioBlocking(asset);
1625
+ preloadAudioBlocking(asset).then(() => {
1626
+ PRELOADED_ASSETS.add(asset);
1627
+ });
1626
1628
  break;
1627
1629
  }
1628
1630
  case "image": {
1629
- preloadImage(asset);
1631
+ preloadImageBlocking(asset).then(() => {
1632
+ PRELOADED_ASSETS.add(asset);
1633
+ });
1630
1634
  break;
1631
1635
  }
1632
1636
  }