mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Force Studio cache to populate on first fetch
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
// Extract immediate data (may be null/empty if uncached)
|
||||
const immediateData = result.data;
|
||||
const studios = immediateData?.Items || immediateData || [];
|
||||
const studios = immediateData?.Items ?? (await result.dataPromise)?.Items ?? [];
|
||||
|
||||
// When dataPromise resolves, update in-memory cache
|
||||
result.dataPromise.then(freshData => {
|
||||
|
||||
Reference in New Issue
Block a user