We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbc9ca commit e34f02dCopy full SHA for e34f02d
1 file changed
src/hooks/useStatus.ts
@@ -162,6 +162,8 @@ export default function useStatus(
162
// ============================ Status ============================
163
// Update with new status
164
useIsomorphicLayoutEffect(() => {
165
+ setAsyncVisible(visible);
166
+
167
if (!supportMotion) {
168
return;
169
}
@@ -194,8 +196,6 @@ export default function useStatus(
194
196
setStatus(nextStatus);
195
197
startStep();
198
-
- setAsyncVisible(visible);
199
}, [visible]);
200
201
// ============================ Effect ============================
0 commit comments