useSWR data not fetching... #2590
Answered
by
koba04
AbhayaShankar
asked this question in
General
-
import useSWR from "swr"; console.log(data); why is data logging as undefined... |
Beta Was this translation helpful? Give feedback.
Answered by
koba04
Apr 29, 2023
Replies: 1 comment 1 reply
-
You have to specify a fetcher function as the argument. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AbhayaShankar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to specify a fetcher function as the argument.
https://swr.vercel.app/docs/data-fetching