@teambit/snapping 1.0.502 → 1.0.504

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.
@@ -1209,7 +1209,9 @@ another option, in case this dependency is not in main yet is to remove all refe
1209
1209
  }
1210
1210
  async loadComponentsForTagOrSnap(ids, shouldClearCacheFirst = true) {
1211
1211
  const idsWithoutVersions = ids.map(id => id.changeVersion(undefined));
1212
- const appIds = await this.application.loadAllAppsAsAspects(idsWithoutVersions);
1212
+ // don't pass the idsWithoutVersions to `this.application.loadAllAppsAsAspects()`.
1213
+ // otherwise, the auto-tag components (which are loaded later) won't have the application data.
1214
+ const appIds = await this.application.loadAllAppsAsAspects();
1213
1215
  if (shouldClearCacheFirst) {
1214
1216
  await this.workspace.consumer.componentFsCache.deleteAllDependenciesDataCache();
1215
1217
  // don't clear only the cache of these ids. we need also the auto-tag. so it's safer to just clear all.