Closed illright closed 1 month ago
Require slices (or segments on sliceless layers) to have a public API.
Every slice (and segment on layers that don't have slices) must contain a public API definition. https://feature-sliced.design/docs/reference/slices-segments#public-api-rule-on-slices
Pay attention that some people prefer to have several entry points to shared/ui to help with tree-shaking and some people also like having the public API on segments in sliced layers.
shared/ui
Require slices (or segments on sliceless layers) to have a public API.
Pay attention that some people prefer to have several entry points to
shared/ui
to help with tree-shaking and some people also like having the public API on segments in sliced layers.