Skip to content

Commit 826b14e

Browse files
committed
fix: never set "expiresBy" for non-idle transitions
1 parent e0725f1 commit 826b14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/useTransition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export function useTransition(
253253
if (is.fun(onRest)) {
254254
onRest(result)
255255
}
256-
if (t.phase == LEAVE) {
256+
if (t.phase == LEAVE && t.ctrl.idle) {
257257
t.expiresBy = now() + expires
258258
if (expires <= 0) {
259259
forceUpdate()

0 commit comments

Comments
 (0)