@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.
- package/CHANGELOG.md +13 -0
- package/dist/api-context.d.ts.map +1 -1
- package/dist/api-context.js +15 -1
- package/dist/cache-coherence.d.ts +65 -0
- package/dist/cache-coherence.d.ts.map +1 -0
- package/dist/cache-coherence.js +191 -0
- package/dist/dynamic-columns-helpers.d.ts +32 -0
- package/dist/dynamic-columns-helpers.d.ts.map +1 -1
- package/dist/dynamic-columns-helpers.js +33 -0
- package/dist/dynamic-columns.d.ts.map +1 -1
- package/dist/dynamic-columns.js +25 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/query-batch.d.ts +7 -0
- package/dist/query-batch.d.ts.map +1 -1
- package/dist/query-batch.js +10 -0
- package/package.json +3 -3
- package/src/__tests__/cache-coherence.test.tsx +248 -0
- package/src/__tests__/stage-column-labels.test.ts +54 -0
- package/src/api-context.tsx +22 -1
- package/src/cache-coherence.ts +215 -0
- package/src/dynamic-columns-helpers.ts +48 -0
- package/src/dynamic-columns.tsx +26 -3
- package/src/index.ts +1 -0
- package/src/query-batch.ts +10 -0
package/src/query-batch.ts
CHANGED
|
@@ -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
|