there's no way to teach an ancestor sCU about the days dependency. 2/2
-
-
I’m a bit confused about this conversation. I haven’t seen people implement sCU by hand except corner cases. Use shallow checks instead.
2 replies 0 retweets 8 likes -
I'm also confused
@wycats. sCU pairs well with prop passing (and immutability ofc). But if you wormhole, subscribe at the destination.1 reply 0 retweets 0 likes -
But the the ancestor sCU doesn't know about the descendent subscription.
2 replies 0 retweets 0 likes -
Redux (or Flux) doesn't rely on this. Each component is notified independently (and can bail out). Parents don't know about children.
1 reply 0 retweets 4 likes -
Replying to @dan_abramov @wycats and
In React sCU only defines what happens to specific component. It doesn't decide for the whole subtree if child has sideways subscription.
2 replies 0 retweets 3 likes -
Replying to @dan_abramov @wycats and
An external subscription mechanism is definitely a hack though. It breaks how React behaves.
1 reply 0 retweets 1 like -
Replying to @timdorr @dan_abramov and
Yeah. I'm just musing in this thread, had we not side-stepped so quickly maybe there's an awesome react-like solution we're just not chasing
3 replies 0 retweets 2 likes -
Replying to @ryanflorence @timdorr and
The Ember approach is to always *pull* data consistently so we can build sCU for you. May like it or not but it works and worth exploring.
2 replies 0 retweets 1 like -
Replying to @wycats @ryanflorence and
Getters let you hide the indirection too, so it looks and feels pretty vanilla.
1 reply 0 retweets 0 likes
At some point you gotta pay the piper though.
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.