#useSWR with API key

3 messages · Page 1 of 1 (latest)

gray spruce
#

what is the issue calling the api route in the fetcher of the swr hook? can you share some code?

#

for the api route you need to use fetch directly

#

then you use swr to fetch your api route