Refine subscription import and refresh flow
Build and Deploy Gateway / build-and-push (push) Successful in 15s
Build and Deploy Gateway / deploy (push) Successful in 13s

This commit is contained in:
2026-07-12 11:18:33 +03:00
parent ba15a25c89
commit 005c7a101b
15 changed files with 190 additions and 218 deletions
-24
View File
@@ -40,27 +40,3 @@ export function createOperationRegistry(onChange = () => {}, now = () => new Dat
return { run, getSnapshot: () => operations };
}
export function createLatestRequest() {
let controller = null;
return {
run(action) {
controller?.abort();
controller = new AbortController();
const current = controller;
return Promise.resolve()
.then(() => action(current.signal))
.then(
(value) => current.signal.aborted ? undefined : value,
(error) => {
if (current.signal.aborted) return undefined;
throw error;
},
);
},
cancel() {
controller?.abort();
},
};
}