Closed jorendorff closed 10 years ago
On Thu, May 30, 2013 at 11:25 AM, Jason Orendorff notifications@github.com wrote:
We should probably pass everything we've got to every hook
Yes.
and maybe even change how this stuff works a little bit so we don't have to create so many objects.
Are we really worried about this much allocation?
Sam
I'm more worried that it's not a very idiomatic API. Objects that look similar turn out not to be the same object. It's confusing.
It's not awful, but maybe we can do better.
As in, you'd expect mutating one to change the later ones?
On Thu, May 30, 2013 at 11:45 AM, Jason Orendorff notifications@github.comwrote:
I'm more worried that it's not a very idiomatic API. Objects that look similar turn out not to be the same object. It's confusing.
It's not awful, but maybe we can do better.
— Reply to this email directly or view it on GitHubhttps://github.com/jorendorff/js-loaders/issues/34#issuecomment-18689007 .
This was all about bundling, and bundling is gone.
Should we pass
type
to thefetch
hook? What aboutextra
?We should probably pass everything we've got to every hook ...and maybe even change how this stuff works a little bit so we don't have to create so many objects.