-
-
Replying to @tomdale
(A big thank you to
@_developit for the Preact REPL which was a big inspiration for the hacking I've been doing on the Glimmer Playground.)1 reply 0 retweets 8 likes -
Replying to @tomdale @_developit
One nice thing about Glimmer is that the templates are "just HTML." You don't have to learn props vs. attrs or boxShadow vs. box-shadow.
4 replies 4 retweets 29 likes -
Replying to @tomdale @_developit
"just HTML" trollery aside. Glimmer looks really interesting. Do you have to ship `tracked` and other change detection stuff? ...
1 reply 0 retweets 1 like -
... or is there a more "manual" way to trigger an update when state is changed? Would that reduce shipped size? Just curious.
3 replies 0 retweets 1 like -
The total code in
@tracked is rather small (certainly smaller than setState). Under the hood, anything using the reference protocol works2 replies 0 retweets 1 like -
A very simple kind of reference is the UpdatableReference: https://github.com/glimmerjs/glimmer-component/blob/master/src/references.ts#L140 … (when the value changes, bump the tag)
1 reply 0 retweets 0 likes -
An even simpler kind of reference would expose a mechanism for just bumping the tag (decoupled from value updates)
1 reply 0 retweets 0 likes
But as you can see the core primitive is quite small and grokkable
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.