Neden fetch
(https://fetch.spec.whatwg.org/) Safari'de (Sürüm 9.0.3) tanımlanmadı, kimse nedenini biliyor mu? Standart ve Chrome ve Firefox'ta iyi çalışıyor gibi görünüyor.Safari'de tanımlanmadı (ReferenceError: Değişken bulamıyor: getirme)
export function fetchData (url) {
return dispatch => {
dispatch(loading())
fetch(url, {
method: 'GET'
})
.then(response => {
response.json()
.then(data => {
dispatch(success(data))
})
})
}
}
http://caniuse.com/#search=fetch 'fetch' hiçbir Safari tarafından desteklenmektedir eklemek olabilir. –