layer inversion

A mistake where a lower layer depends on a higher one, such as a colour token that refers to a button component.

In more detail

Layer inversion breaks the one-way flow of a layered architecture and usually creates a circular dependency. The lesson catches it early by checking each registered node's dependencies and throwing an error when one comes from the same or a higher layer. Lint rules can enforce the same check at compile time.

Related terms

Taught in

References