You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, @fluentui/react-utilities provides a useMount() hook that is not re-exported from @fluentui/react-components meaning a user directly depending on react-utilities has access to more features than one depending on react-components.
All features that are part of the public API of any of @fluentui/react-components' sub-packages should also be part of @fluentui/react-components' public API.
spmonahan
changed the title
Align react-components exports with sub-package exports
Align react-components Exports with Sub-package Exports
May 31, 2022
Problem
Because
@fluentui/react-components
does not always re-export all of the functionality of the sub-packages from which it is composed it can lack feature parity with its sub-packages.For example,
@fluentui/react-utilities
provides auseMount()
hook that is not re-exported from@fluentui/react-components
meaning a user directly depending onreact-utilities
has access to more features than one depending onreact-components
.Appetite
3~4 weeks. We should have a solution prior to the release of v9 stable at the end of June.
Solution
All features that are part of the public API of any of
@fluentui/react-components
' sub-packages should also be part of@fluentui/react-components
' public API.Risks (Rabbit holes)
Out of scope (No-gos)
Related
The text was updated successfully, but these errors were encountered: