Skip to content

Sharing code between slices (forbidden) #822

Answered by illright
RemyMachado asked this question in Q&A
Discussion options

You must be logged in to vote

If you need to share code between several features, it's usually a sign that there's something in common with these features, and perhaps it is worthwhile to merge them all into a single feature. Also it's worth noting that not every user action needs to be a separate feature — code that's only used on a single page should stay within that page.

If the features are indeed very independent, but they need to reuse code, then that code should probably be moved down to Shared.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RemyMachado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants