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.

apollo-client-preset 1.0.7 breaks @client directive in apollo-link-state

See original GitHub issue

Intended outcome: Upgrading apollo-client-preset from 1.0.6 to1.0.7 should not break custom directive @client in apollo-link-state.

Actual outcome: @client directive in apollo-link-state no longer works. The might be due to recent addition of custom directive feature in apollo-cache-inmemory@1.1.6

How to reproduce the issue:

  1. Install apollo-link-state@^0.3.1 along with apollo-client-preset@^1.0.6 and implement local client query using @client directive.

  2. Upgrade to apollo-client-preset@^1.0.7@client directives no longer works.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
peggyrayziscommented, Jan 30, 2018

Thanks for reporting this! Hoping to get a fix out as soon as possible 😃

0reactions
LawJollacommented, Jan 30, 2018

Well done @barbalex ! I also thought it was apollo-utilities, but I’m not experienced enough with flushing NPM caches to get clean installs… I kept chasing my tail and wasn’t able to reproduce the fix reliably.

I rolled back apollo-client to 2.0.4, apollo-cache-inmemory to 1.1.0 and apollo-utilities 1.0.3, and after yelling and screaming enough, finally a node_module clear and npm install worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local state management - Apollo GraphQL Docs
You'll notice in our query that we have a @client directive next to our visibilityFilter field. This tells Apollo Client to fetch the...
Read more >
Mixing client and server state in query leads to error · Issue #140
Let's say I have a query like this: query StoryLayout($storyId: ID!) { tutorial @client story(id: $storyId) { id } } This throws with...
Read more >
apollo-client-preset | Yarn - Package Manager
Use create-react-app then yarn add apollo-client-preset react-apollo graphql and replace below code for index.js import * as React from 'react' import ...
Read more >
Intro to Apollo Client 3.0 - YouTube
On this episode of Mission Briefing, Ben Newman (@benjamn) walks Kurt Kemple (@kurtkemple) through Apollo Client 3.0! Apollo Client 3.0 ...
Read more >
Using Apollo Client with a REST API | by November Five
});. Later on we will use this endpoint to illustrate how data fetching with apollo-link-rest works in React. QUERIES. We ...
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