From e6ff6c50d35a907647a80aa244e36d9fd1bc4416 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 20 Dec 2025 21:29:05 +0100 Subject: [PATCH] Update frontend/src/ts/utils/misc.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- frontend/src/ts/utils/misc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/ts/utils/misc.ts b/frontend/src/ts/utils/misc.ts index f26218076..6e6ea8fca 100644 --- a/frontend/src/ts/utils/misc.ts +++ b/frontend/src/ts/utils/misc.ts @@ -598,6 +598,7 @@ export function applyReducedMotion(animationTime: number): number { * Creates a promise with resolvers. * This is useful for creating a promise that can be resolved or rejected from outside the promise itself. * The returned promise reference stays constant even after reset() - it will always await the current internal promise. + * Note: Promise chains created via .then()/.catch()/.finally() will always follow the current internal promise state, even if created before reset(). */ export function promiseWithResolvers(): { resolve: (value: T) => void;