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
I spent some time today writing some tests to expose what I thought was a bug here -- the polyfill is always used by ember-fetch; it will never fall back to native fetch, even when its available.
I was sure this was a bug until I found pretenderjs/pretender#60 with comments indicating that it was intended that this addon always uses the polyfill.
It's been almost a year since those comments, and Chrome and Firefox now appear to support fetch (http://caniuse.com/#search=fetch), should the native fetch be used, if available? Alternatively, a note in the Readme about why it always uses the polyfill would be great.
Incidentally, I started down this path when someone told me they were using ember-network + fetch and were also using ember-cli-mirage for testing on a recent Chrome and I felt I had to solve the mystery of how that worked. So, I have no real use case here and I certainly don't mind it using ajax. It does make testing easier that way, at least until pretender supports fetch.
The text was updated successfully, but these errors were encountered:
I spent some time today writing some tests to expose what I thought was a bug here -- the polyfill is always used by
ember-fetch
; it will never fall back to native fetch, even when its available.I was sure this was a bug until I found pretenderjs/pretender#60 with comments indicating that it was intended that this addon always uses the polyfill.
It's been almost a year since those comments, and Chrome and Firefox now appear to support fetch (http://caniuse.com/#search=fetch), should the native fetch be used, if available? Alternatively, a note in the Readme about why it always uses the polyfill would be great.
Incidentally, I started down this path when someone told me they were using
ember-network
+fetch
and were also usingember-cli-mirage
for testing on a recent Chrome and I felt I had to solve the mystery of how that worked. So, I have no real use case here and I certainly don't mind it using ajax. It does make testing easier that way, at least until pretender supportsfetch
.The text was updated successfully, but these errors were encountered: