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 070dfd6 commit 8fb1b61Copy full SHA for 8fb1b61
packages/@react-spectrum/s2/src/Toast.tsx
@@ -68,10 +68,7 @@ function startViewTransition(fn: () => void, type: string) {
68
if ('startViewTransition' in document) {
69
// Safari doesn't support :active-view-transition-type() yet, so we fall back to a class on the html element.
70
document.documentElement.classList.add(toastCss[type]);
71
- let viewTransition = document.startViewTransition({
72
- update: () => flushSync(fn),
73
- types: [toastCss[type]]
74
- });
+ let viewTransition = document.startViewTransition(() => flushSync(fn));
75
76
viewTransition.ready.catch(() => {});
77
viewTransition.finished.then(() => {
0 commit comments