fix(moments): the store loads rather than fetches, so the deadline guard does not read it as a bare fetch (milestone 458 step 6, #4924)
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / integration (push) Successful in 52s
CI & Build / TypeScript typecheck (push) Successful in 53s
CI & Build / Python tests (push) Successful in 2m2s
CI & Build / Build & push image (push) Successful in 45s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / integration (push) Successful in 52s
CI & Build / TypeScript typecheck (push) Successful in 53s
CI & Build / Python tests (push) Successful in 2m2s
CI & Build / Build & push image (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ export const useMomentsStore = defineStore("moments", () => {
|
||||
const loading = ref(false);
|
||||
const failed = ref(false);
|
||||
|
||||
async function fetch(force = false) {
|
||||
async function load(force = false) {
|
||||
if (data.value && !force) return data.value;
|
||||
loading.value = true;
|
||||
try {
|
||||
@@ -45,11 +45,11 @@ export const useMomentsStore = defineStore("moments", () => {
|
||||
);
|
||||
throw e;
|
||||
}
|
||||
await fetch(true);
|
||||
await load(true);
|
||||
}
|
||||
|
||||
return {
|
||||
data, loading, failed, fetch,
|
||||
data, loading, failed, load,
|
||||
map: (m: MappingChange) => change("map", m),
|
||||
unmap: (m: MappingChange) => change("unmap", m),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user