News for hackers. Stuff that matters.
Re:Zero-Bundle-Size React Server Components by samc98 on Thursday December 24, 2020 @03:30AM (#25525943)
> why wouldn’t generators be a good fit for some of these use cases? Especially since iterating over data is a common action. I imagine this would be easier to integrate into the framework for things like this

I think this is answered by Seb, in the "Contributing to Fiber" issue in the React Repo: https://github.com/facebook/react/issues/7942#issuecomment-2...

But maybe things have changed since then!

I suspect that "why doesn't react handle plain promises natively" would be addressed in the RFC detailing the whole "let's throw a promise" thing.

There are no comments on this comment yet.