Commit 356e5caf authored by Konstantin Münster's avatar Konstantin Münster Committed by Tim Neutkens

Fix bug in data-fetching.md's example (#9868)

Add missing `await` keyword in the Static Generation example
parent be3b5b7c
......@@ -34,7 +34,7 @@ import useSWR from 'swr'
const API_URL = 'https://api.github.com'
async function fetcher(path) {
const res = fetch(API_URL + path)
const res = await fetch(API_URL + path)
const json = await res.json()
return json
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment