-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
my loading is forever "True" #9668
Comments
I'm having the same problem, +1 |
thanks for reply. at least im not the only one facing that issue. |
I have same problem |
Same here. Check #9649 |
Same here. For me either apollos useQuery does not work (e.g. 3.5.10 and above) or apollos client.query does not work (e.g. 3.4) |
downgrading to 3.5.10 solved my issue:
This may be useful for further bug investigation: during debugging (v3.6.2) I noticed that commenting and uncommenting any
|
Had the same problem....initially thought I was doing something wrong, works whenever i uncomment/comment return partial data: true |
@sLurPPPeRsTaR i downgraded my @apollo/client package to 3.5.10 and it works perfectly |
Can folks try updating with |
Will try, thanks for your advise |
will try. Thanks for your advise. |
Hello, we have the same problem and updating to 3.6.3 did not solve the problem. The loading is still stuck and jest tests do not return any data |
We are getting the same behavior with 3.6.3 and the versions before until 3.5.10 which works as expected. We're using NextJs & Apollo Client and every second or third request to the GraphQl endpoint is stuck at "loading" and never resolves. |
+1 |
Hi Benjam , the result is same as usual. it still pending and same with prev version. sorry :( , but we love to hear if there is any update for this issue. thanks for your concern. |
I can also confirm this issue in a React Native (bare workflow, non-expo) app. Version 3.5.10 works fine. Anything from 3.6.x, including 3.6.3 does not return any data (everything is stuck in loading).
|
It is most likely related to uSES since the same issue happened with react query |
Same thing happening on 3.7.0 alpha |
when I downgrade apollo client to 3.5.0.it solved. |
Yeapppp 3.5.0 is fine.. |
Hi, react-query maintainer here 👋 It seems that we have similar problems with the following setup:
and as far as I can see, the last "working version" was the one before you switched to uSES. I can confirm that the shim works fine with react17 and react18 for the web. We've also narrowed down that in the above setup, the
|
Thanks for those details @TkDodo! 🙏 Looking at this code, it seems the only way |
@benjamn we have since found out that importing We've had the index-less version, but then switched to adding There is some discussion going on in our issue over here: I am by no means an expert in these bundler related issue, but I think there is some progress being made in figuring it out 😅 |
This seems to make some bundlers in some configurations happier, e.g. https://github.com/apollographql/react-apollo-error-template/
In case a little background is useful, I originally switched from
Using Hoping the
Just to make this perfectly clear: we are fully committed to continuing to support React 17 (and React Native) alongside React 18, so we will find a way to make this work, even if it means shipping #9675 in 3.6.x instead of 3.7. That PR should sidestep all issues of bundling with the |
Yep, this is the exact same error we've also seen and why we switched to the index.js import. Why is this so complex 😅🙈 |
Alright, I don't want to speak too soon, but I believe PR #9675 will make this problem go away. That is, if you run npm i @apollo/client@beta you'll get version Yes, we plan to upstream any improvements we can identify for the Please give that alpha version a try, and (if everything looks good) I expect to ship these changes in 3.6.4 (not 3.7). |
@benjamn 3.7.0-alpha.3 work for me! thanks :) I will be waiting for the stable version |
@benjamn work for me as well, Thank you! |
fyi, there is a PR in the react repo to fix it on the uSES side: |
ok all good now. thanks @benjamn and everyone |
When using react 17 I get this error when trying to build a next.js app:
Is there anything we have to do to still use react 17? |
Hi, @benjamn – I tried the latest beta (3.7.0-alpha.4) and it works great for me too. Thanks for the quick fix! I know you said this same issue would be solved in 3.6.4 as well. Do you have a sense when that will be available? |
@Off2Race @sLurPPPeRsTaR @SimenB (and others) I just published You can find the detailed release notes here (and here for v3.6.3). Thanks for your patience! |
Hi, @benjamn – I just upgraded to 3.6.4 and everything looks good. Thanks again for the excellent work! |
I'm seing this issue with 3.6.9 (react 17) |
I have the same issue but a few days ago every thing work but when I got back to work today I got that problem and I tried all the versions you talked about but nothing work and here is my first and my current package.json file
|
am i the only one here facing this issue ?
here my "dependencies": {
"@apollo/client": "^3.6.2",
"graphql": "^16.4.0",
"react": "17.0.2",
"react-native": "0.68.1"
},
const client = new ApolloClient({
uri: 'https://api.mocki.io/v2/c4d7a195/graphql',
cache: new InMemoryCache(),
});
const GET_ME = gql
query { users { id email name } }
;const {data, loading, error} = useQuery(GET_ME);
console.log({error, loading, data});
if (loading) return Loading...;
if (error) return
Error! ${error.message}
;RESULT : {error: undefined, loading: true, data: undefined}
please advise. thanks
The text was updated successfully, but these errors were encountered: