Skip to content

Commit e34f02d

Browse files
committed
chore: should keep update visible
1 parent 6dbc9ca commit e34f02d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hooks/useStatus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ export default function useStatus(
162162
// ============================ Status ============================
163163
// Update with new status
164164
useIsomorphicLayoutEffect(() => {
165+
setAsyncVisible(visible);
166+
165167
if (!supportMotion) {
166168
return;
167169
}
@@ -194,8 +196,6 @@ export default function useStatus(
194196
setStatus(nextStatus);
195197
startStep();
196198
}
197-
198-
setAsyncVisible(visible);
199199
}, [visible]);
200200

201201
// ============================ Effect ============================

0 commit comments

Comments
 (0)