feat: ViewTransitionWrapper shared component with stable react-dom fallback
Wraps children in React's ViewTransition (canary API) when available, falling back to Fragment in environments where ViewTransition is undefined (test env, stable react-dom). Add react/canary to tsconfig types to expose the ViewTransition component type.
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"types": ["vitest/globals"],
|
||||
"types": ["vitest/globals", "react/canary"],
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
"$shared/*": ["./src/shared/*"],
|
||||
|
||||
Reference in New Issue
Block a user