Posts
Members
Info
Storybook and useReactiveVar
I have a component that accepts no props and relies on useReactiveVar(localStateVar) for data. Is it possible to mock useReactiveVar in storybook?
0
1
Reactive variables and apollo devtools
I can't see the reactive variables when debugging using apollo devtools (chrome extension) in the cache panel. I am new to Graphql and Apollo, and being able to debug using devtools is important to me, Do you plan to support this soon ? Otherwise I may go with writeQuery just…
0
1
Queries with local and remote fields don't update with Apollo Client 3
When I update reactive variables directly my queries are not updating with the new local field values. I created a code sandbox to reproduce this: https://codesandbox.io/s/unruffled-franklin-jb6h2 If I change the version of Apollo Client to 2.x.x the query updates as expected,…
0
0
Trying to get client.readQuery to work in React Native app. Help!
I'm working on a RN app using Apollo client and I have my login mutation writing a couple pieces of user data into the cache as ActiveUser: (data is the result of the login mutation) Then, in the next screen, I want to get that data from the cache so I have: …
0
1
Derived Local fields
I'm looking for a way to create derived local fields for my graphql type. ex: From the docs I didn't see any way of accessing the whole object:
1
1
generate schema local state
Im looking at https://www.apollographql.com/blog/demystifying-cache-normalization/. I have two question. Does anyone know how to resolve this issue:https://github.com/apollographql/ac3-state-management-examples/issues/26#issue-701710423 And second, how do you generate a schema…
0
0
Is makeVar() a react hook?
The apollo docs make it seem like makeVar() will trigger react to re-render on it's own. is this true? Or does it need to be used in conjunction with useQuery() See docs below https://www.apollographql.com/blog/local-state-management-with-reactive-variables/ I don't think it…
0
0
Is it possible to get a field in my cache based on a field defined with…
I was using local resolvers before and added a virtual column to my entity that did show up in my cache. Now, I think I'm doing the same thing with field-policy and the field is not showing up in my cache, even when I update it with reactive variables. I posted to SO more…
0
0
Using ApolloClient for Local statemanagent, how?
Hello, relatively new to Apollo and I'm not getting any wiser from the docs. I would like to save like for example two variables. One that stores the currentMonth and one currentYear. …
0
0
Apollo local-only state cache implementation help!
I'm choosing a cache-backed implementation for storing local-only fields (fields added to a remote schema type). Tangent: I selected this approach because it seems that the cache operations give me the option of broadcasting or not (in this case, I do not want my modification to…
0
0