Which I'm saying I don't *think* there's really overhead because we already have old + new props at this point for other reasons
-
-
Replying to @aweary @dan_abramov and
but even if there *was* overhead that *was* unwanted, backwards compat means keeping current + new for cWRP since that's the current API
1 reply 0 retweets 0 likes -
Replying to @aweary @dan_abramov and
This conversation has kinda gone down hill. It started by comparing glimmer and react arch. I was giving a reason glimmer doesn't like this.
1 reply 0 retweets 0 likes -
There's otherwise a lot of equivalence between the APIs and I said I don't think there are good use cases for these hooks.
1 reply 0 retweets 0 likes -
So I was kinda teasing out differences between the implementations and community norms.
1 reply 0 retweets 0 likes -
I wasn't saying today's react impl is wasteful at all. Just doing some compare 'n contrast.
1 reply 0 retweets 0 likes -
Yehuda Katz 🥨 Retweeted Dan Abramov
1: https://twitter.com/dan_abramov/status/921165636151271424 … The question here is what is a "functional component". Glimmer VMs perspective is:
Yehuda Katz 🥨 added,
1 reply 0 retweets 0 likes -
2: these hooks are all capabilities. We compile a hook invocation if a component declares that it uses that capability.
1 reply 0 retweets 0 likes -
3: so a functional component (a "template only component" in glimmer) is a component that uses very minimal capabilities.
1 reply 0 retweets 0 likes -
4: this makes the curve from "full featured expensive component" to "pure functional component" more graded.
1 reply 0 retweets 0 likes
5: a "class-based Component" can have fewer hooks, and a "functional component" can implement the dynamic features via params.
-
-
6/6: that's the low level. At a high level the conveniences are more coarse obv.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.