-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usage with swr not working #107
Comments
Hi @lukvermeulen! Facing the same issue with send XHR through superagent. Did you find solution? Or used something else? |
Hey @GunsStarR, I ended up using "Mock Service Worker", after following this article. It works quite well for me. |
@lukvermeulen I tried to run swr with Looking at your code, can you tell me which type of client is this? is it going to call a fetch or XHR request?
|
@GunsStarR it's confirmed that there's a bug in the package which breaks the superagent. You will get the fix in the upcoming release. |
@GunsStarR this fix is released in version 2.4.0. Can you please check? |
Hi @nutboltu, my client is configured to use native window.fetch |
I'm using I'm using version |
Hey, this looks like an awesome utility!
This also works out of the box when using
fetch
directly, however it appears to not work with my usage of swr.What would be the best approach to debug this and see why this is not working?
Thanks in advance!
Some snippets for reference:
the useChannels hook:
The text was updated successfully, but these errors were encountered: