Call only the fetcher with parameter #571
Unanswered
danilockthar
asked this question in
General
Replies: 1 comment
-
I think that should work, could you share a codesandbox to reproduce your error? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to use swr only with a fetcher and send one parameter to that fetcher, but it return undefined, how to do that correctly? I have this fetcher that connect to my fauna api and i want to send an ID parameter
const {data, errors }= useSWR([idproduct], productByID, { refreshInterval: 3000 })
Beta Was this translation helpful? Give feedback.
All reactions