Ambients were renamed to CompositionLocal. Keep i...
# compose
j
Ambients were renamed to CompositionLocal. Keep in mind that CompositionLocals should be thought of like ThreadLocals or Globals - they create implicit data dependencies that are hard to reason about, hard to maintain, and violate API abstractions by breaking encapsulation.  You should avoid them whenever possible.