Skip to content

Commit 3dbdc1e

Browse files
authored
fix(toast): catch startViewTransition error thrown for multiple transitions (#7760)
1 parent 260eb70 commit 3dbdc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/toast/src/ToastContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function wrapInViewTransition<R>(fn: () => R): R {
4747
flushSync(() => {
4848
result = fn();
4949
});
50-
});
50+
}).ready.catch(() => {});
5151
// @ts-ignore
5252
return result;
5353
} else {

0 commit comments

Comments
 (0)