Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/adobe/react-spectrum
/ viewTransition
Function
viewTransition
packages/dev/s2-docs/src/ExpandableCode.tsx:113–120 ·
view source on GitHub ↗
(cb)
Source
from the content-addressed store, hash-verified
111
}
112
113
function viewTransition(cb) {
114
if (
'startViewTransition'
in document) {
115
// @ts-ignore
116
document.startViewTransition(() => flushSync(() => cb()));
117
} else {
118
cb();
119
}
120
}
Callers
1
ExpandableCode
Function · 0.85
Calls
2
cb
Function · 0.85
startViewTransition
Method · 0.80
Tested by
no test coverage detected