Need help with defining onSuccess callback for useSWR #12414
-
I posted this question here(vercel/swr#362) 2 days ago but didn't receive any response, hence posting here. I am trying to use
/api/data.js:
package.json:
Here is the codesandbox showing the problem : https://codesandbox.io/s/nervous-hill-mn0kz?file=/pages/index.js |
Beta Was this translation helpful? Give feedback.
Answered by
timneutkens
May 10, 2020
Replies: 1 comment
-
Was answered here: vercel/swr#362 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
timneutkens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Was answered here: vercel/swr#362