Kilian Schulte @schultek.dev · Nov 27

When you have a feature-first app, how do you approach dependencies between features? I'm right now trying to clean this up this into a unidirectional graph... its a pain, but hopefully worth it.

8 likes 4 replies

?

Replies

Rody Davis · Nov 27

I do onion architecture!

Will Pierce · Nov 27

I think about the interfaces the components need to interact with each other, then try to slice the code along independent fault lines. Usually a better shape falls out. Sometimes I have to force myself to think: is this backwards? Inside out? Often I find a better shape with no cyclic dependencies.

Thomas · Nov 28

We allow direct access between features to some extent but recently introduced an Eventbus for pure informational one way triggers to other components.

jamie kerber 💫🩵🌷 · Nov 27

I’ve heard of using an event bus to be a good solution!