Cleaned up usage of fetch
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user