You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proposal: refactor $.getJSON examples to use fetch #570
Converting code examples for Octane has refreshed a discussion about using jQuery in trivial code examples. I think we should refactor code examples that feel dated due to using $.getJSON. See #33 for my prior hang ups. Tangential to #499.
In a land of jQuery free Ember applications, why should we promote depending on the entire jQuery library for a single function?
Easier teaching and mental model. By aligning with a web standard, we leverage existing teaching and developer experience. For new developers it gives them a helpful tool that could be considered a best practice in web development. Fetch's Promise based design flows nicely with concepts taught throughout the Ember guides and modern asynchronous web programming.
Activity
acorncom commentedon Mar 28, 2019
@efx I like the idea here. Given that the browser matrix for Ember still includes IE 11, it seems like it would be best to be suggesting using https://github.com/ember-cli/ember-fetch so we don't deliberately steer folks toward something that could cause them headaches in production. Thoughts?