Where can I read about ambients? I feel like I kno...
# compose
a
Where can I read about ambients? I feel like I know so little about them
It's similar in concept to react's Context, and some of the design considerations when using it also apply to Ambients: https://reactjs.org/docs/context.html#before-you-use-context
the short version is: it's remarkably easy to go overboard with ambients and make things very difficult to reason about and maintain. They form invisible dependencies in your code, and you should be very thoughtful about when that property is desirable
a
Thank you a bunch.
👍 1