question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@client(always:true) doesn't work 🐛

See original GitHub issue

Intended outcome: As documented here, I expect my local queries resolvers to always run.

Actual outcome: They never run. 😕

How to reproduce the issue: https://codesandbox.io/s/wom5lv5owl

Versions

"dependencies": {
    "apollo-cache-inmemory": "1.5.1",
    "apollo-client": "2.5.1",
    "apollo-link-http": "1.5.14",
    "apollo-link-ws": "1.0.17",
    "graphql": "14.2.0",
    "graphql-tag": "2.10.1",
    "react": "16.8.3",
    "react-apollo": "2.5.3",
    "react-dom": "16.8.3",
    "react-scripts": "2.1.8"
  },

Please let me know if you need extra info or if I could do anything to help.

Thanks! 💙

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:33 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
benjamncommented, May 21, 2019

Closing since we just published the final version of apollo-client@2.6.0 to npm, including some improvements to the functionality discussed in this issue. While there may still be related issues that are worth addressing, we are happy to continue those discussions in new issues. See CHANGELOG.md if you’re curious about the other changes in this release.

4reactions
supercrankycommented, Mar 29, 2019

“always:true” should mean always as in always 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling operation errors - Apollo GraphQL Docs
Apollo Client helps you handle these errors according to their type, enabling you to show appropriate information to the user when an error...
Read more >
c# - TcpClient.Connected returns true yet client is not ...
I'm constantly checking the .Connected property to verify if the client is connected but even if the client disconnects this still returns true....
Read more >
Model validation in ASP.NET Core MVC | Microsoft Learn
The [Remote] attribute implements client-side validation that requires calling a method on the server to determine whether field input is valid.
Read more >
Automatically handling Apollo Client errors in your React UI
This doesn't mean you shouldn't perform the check on the server at all, as the server should always be the final line of...
Read more >
What went wrong? Troubleshooting JavaScript - MDN Web Docs
It won't always be that simple to work out what's wrong in your code, ... with the right tools and know what the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found