ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

Export conflicts with fetch Response #76

Open ryanve opened 6 years ago

ryanve commented 6 years ago

Response is the name used in our root export but the native fetch API adds window.Response as part of that standard. What is the best way to mitigate conflict with this? Rename the export? Ideas? How should we communicate this change?

amanssit commented 5 years ago

Hi @ryanve I am also getting this issue. Response.js Response object getting conflicts with fetch Response.

ryanve commented 4 years ago

Ok I'll have to do a new version with a new export name. I'll post here when I do!

ryanve commented 4 years ago

noConflict restores the fetch Response and returns a reference to the library

let R = Response.noConflict() 

See noConflict in the source to see how it works : )

@amanssit how does that work for you for now?