Is it intentional for packages to depend on preview packages? #35735
Answered
by
MukundaKatta
ej-hayashi
asked this question in
Q&A
|
Is it intentional that packages such as @fluentui/react-toast include the preview package like @fluentui/react-motion-components-preview in their dependencies? |
Answered by
MukundaKatta
Apr 21, 2026
Replies: 1 comment
|
Yes — |
0 replies
Answer selected by
tudorpopams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.