Comments (7)
@carinakoo @JakeDawkins this is supported in the new release! (That I'm cutting today!)
from apollo-link-state.
@carinakoo I'll get one opened in the next couple hours!
from apollo-link-state.
Here is the PR for this! Tests are broken (maybe a known issue) and I haven't yet gotten the chance to drop this into a project to make sure it works.
@carinakoo If you'd like, you could try running the changes locally
from apollo-link-state.
Tested locally and noted an error in the graphql-anywhere
PR.
It appears that the apollo-link-state
repo may also require a couple changes to support promises and play nicely with the Apollo Client api. In particular, for refetchQueries
and update
to be called at the right time after a mutation:
- Check if the return value from
graphql-anywhere
is a promise - Call
observer.next
andobserver.complete
after the promise resolves
from apollo-link-state.
@carinakoo you are totally correct! I'm going to try to work through the graphql-anywhere PR and see about an alpha / beta for it so we can try it out here!
from apollo-link-state.
@carinakoo for sure! @JakeDawkins is working on that PR in the new location in the AC repo!
If you are anyone want to help I know he would be appreciative
from apollo-link-state.
Great! @JakeDawkins, what kind of help might be useful?
Is there a new PR already in the AC repo?
from apollo-link-state.
Related Issues (20)
- how to query local state by Id HOT 9
- Feature Request: Add an Opt In for using Service Workers or Workers for state management
- How to pass variable from local state HOT 2
- Is clientState.resolvers required or optional?
- Apollo: Problem triggering local state mutation via componentDidMount() HOT 1
- How should I update local state after fetching remote data? HOT 1
- Cannot read property '__typename' of undefined
- Client mutation failed to update (array of objects with different shapes)
- Missing field session in {} HOT 1
- Stupid docs HOT 7
- When calling execute directly on link, resolver cache argument is undefined
- Support for custom scalars
- ⚠️ This project is being deprecated ⚠️ HOT 2
- Store function references?
- Defining fragment properties on resolvers
- How to read Data one object from array of objects from cache. HOT 1
- Slow function call to store
- Not compatible with [email protected]: Cannot find module 'graphql-anywhere/lib/async' HOT 9
- How to let Query componet only fetch cache data only in first time componet building?
- Is it possible to have computed / derived state?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-link-state.