I'm reading this react article and I think its pretty sweet and will show some problems that we encounter in compose soon enough. https://epicreact.dev/one-react-mistake-thats-slowing-you-down/
I'm new to react, but I know more react than compose. In the article above is "context" in react similar to Ambients in compose world?
a
Adam Powell
09/26/2020, 3:18 AM
Yep. All of the advice here applies for the same reasons. Using composable lambdas passed to your composable functions yields the same benefits described here and removes a lot of the reasons to reach for ambients in the same way.
Adam Powell
09/26/2020, 3:19 AM
The compose-material Scaffold function works this way
Adam Powell
09/26/2020, 3:20 AM
And this is what I'm referring to in a bunch of the discussions in the scrollback of this channel when I've talked about using the lexical scope rather than ambients or prop drilling 🙂
c
Colton Idle
09/26/2020, 6:50 AM
Awesome! @Adam Powell COMPOSE IS STARTING TO MAKE SENSE TO ME!
😄 1
🎉 2
Colton Idle
07/27/2022, 7:47 PM
@spierce7 you might find this helpful also per what we were just talking about?