diff --git a/src/react-fetch.js b/src/react-fetch.js index 048ffd1..84674e7 100644 --- a/src/react-fetch.js +++ b/src/react-fetch.js @@ -1,5 +1,10 @@ import React from 'react/addons' -import fetch from 'isomorphic-fetch' + +//this is to hack around a bug, see: +//https://github.com/matthew-andrews/isomorphic-fetch/pull/20 +//import fetch from 'isomorphic-fetch' +import fetch_ from 'isomorphic-fetch'; +var fetch = fetch_.bind(undefined); export default class Fetch extends React.Component{