Is it intentional for packages to depend on preview packages? #35735
-
|
Is it intentional that packages such as @fluentui/react-toast include the preview package like @fluentui/react-motion-components-preview in their dependencies? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Yes — |
Beta Was this translation helpful? Give feedback.
Yes —
react-toastuses motion components fromreact-motion-components-previewbecause motion primitives haven't graduated to stable yet. When they do (it's on the v9 roadmap), the dep will be swapped for the stable package. For now, treat-previewpackages consumed transitively as effectively stable for the consuming stable package's API surface — breaking changes in preview are handled at the consumer-package version.