Skip to content
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

No client has been specified using urql's Provider #7

Closed
noxevolution opened this issue Sep 30, 2020 · 2 comments
Closed

No client has been specified using urql's Provider #7

noxevolution opened this issue Sep 30, 2020 · 2 comments

Comments

@noxevolution
Copy link

noxevolution commented Sep 30, 2020

Hello Ben, I am a newbie to react and after creating createUrqlClient.ts file and copy the cacheExcange from _app.tsx, then removing all the unnecessary imports from _app.tsx and exporting the index like this export default withUrqlClient(createUrqlClient)(Index) in index.tsx file, I am getting the error below,

Default Client: No client has been specified using urql's Provider.This means that urql will be falling back to defaults including making requests to `/
graphql`.
If that's not what you want, please create a client and add a Provider.

How can i solve this issue?

@benawad
Copy link
Owner

benawad commented Sep 30, 2020

Did you see #6

@noxevolution
Copy link
Author

Thx a lot! @benawad . solved it through voland62's comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants