Multiple useSwr in custom hook, does not work on first time #1101
Unanswered
alimertcakar
asked this question in
Q&A
Replies: 1 comment
-
Ok, it was related to another library. It was driving me nuts. Solved now |
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
-
This could be a react hook related question, but i can't figure out the problem.
It does not return the productData on first search, however it does work on second request.
useSwr asyncronusly updates productData, but why doesn't it apply to components that i've used this hook?
Beta Was this translation helpful? Give feedback.
All reactions