@asteby/metacore-runtime-react 53.1.0 → 53.2.0

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.
@@ -202,6 +202,16 @@ export function invalidateQueryBatchData(): void {
202
202
  }
203
203
  entityCache.clear()
204
204
  }
205
+ /**
206
+ * Forgets EVERYTHING the batch remembered, metadata and i18n reads included
207
+ * (invalidateQueryBatchData keeps those on purpose: a save does not change
208
+ * them). Used when the cache epoch moves — an addon was installed, upgraded,
209
+ * enabled, disabled or uninstalled — because then they are exactly what is stale.
210
+ */
211
+ export function invalidateQueryBatchAll(): void {
212
+ partCache.clear()
213
+ entityCache.clear()
214
+ }
205
215
  let waiters: Waiter[] = []
206
216
  let timer: ReturnType<typeof setTimeout> | null = null
207
217
  let transport: ApiClient | null = null