Cleaned up usage of fetch

This commit is contained in:
2022-06-10 16:53:42 +01:00
parent ed01fe6db5
commit 490860159e
6 changed files with 11 additions and 22 deletions
-4
View File
@@ -8,10 +8,6 @@ const NewsFeed = props => {
useEffect(() => {
//this... um...
fetch(`${process.env.NEWS_URI}/news`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
},
signal: aborter.current.signal //oh dear
})
.then(blob => blob.json())