3 ms·
It's hard to reason about without an actual real-life use case, but the lookup thing he's doing looks extremely convoluted to me.
by efdee 6y ago
It's hard to reason about without an actual real-life use case, but the lookup thing he's doing looks extremely convoluted to me.
- draw_down 6y agoAgree, I don’t know what is going on there but it sure smells like something you shouldn’t need to do.
- WorldMaker 6y agoRight, I'd be curious to know a lot more details of the real-life use case that inspired that. My gut feeling says that there's maybe a state machine of some sort which could possibly be split into a sequence or maybe hierarchy of smaller components, but it's hard to tell specifically what the alternative might be without more details on why they thought a lookup table might be useful.
- jiofih 6y agoOnce you start using Context everything has to become a hook to be able to consume it, I bet that’s what’s goin on there.