menu
Channels
Team
Posts
Members
Info

Local state query variables does not work

Hi there. It is possible to get all items(filtered) from my local state? For example This code does not work. My items array is empty and I don't know why. I see many items in Apollo cache.

thumbsup
0
message-simple
14

Please Help

I want write object to cache as bellow cache.writeData({ data: { 鈥

thumbsup
0
message-simple
0

How to cut over from server data to local state

I have an application that I would like to convert to using GraphQL. I have a proof-of-concept working that uses apollo-state-rest. I also have a system in place where my application syncs all of a user's data into a local IndexedDB in the background. Once that sync is in place,鈥

thumbsup
0
message-simple
2

How can I change the URI in link-http based on state?

I would like to change the URI of http link based on the application state

thumbsup
0
message-simple
1

Rerender on local cache change

The React should automatically rerender the component that requests data from the local cache when updating this data from another component, right? In one component, I use writeData, which records data when the input changes. In another component, I use graphql HOC that queries鈥

thumbsup
0
message-simple
7

Apollo dev tools not showing local state data

Is that a known issue? maybe I am doing something wrong. I do have a working local state and I can change it , also extending the server schema. 鈥

thumbsup
0
message-simple
0

How to run <Query> after mutation?

I have quite a simple local state resolvers. Mutation runs successfully, I can observe changes in IndexedDB, but Query in my app won't refresh it's data. Only browser refresh helps.

thumbsup
1
message-simple
26

@include based on exported local state

An "Upload" component should query the local state for an upload and the server for a list of merchants, but it should only hit the network for merchants if the user is logged in. Consider this query: I would expect this to 鈥

thumbsup
0
message-simple
0

Using local state when resolver & initial value depends on server response

Hello, I鈥檓 running into an issue when local state is being used in an app that has multiple queries. Basically I want to add an extra scalar value (with the @client directive) to elements in an array. This array comes from the server, and so I can鈥檛 initialize the result of this鈥

thumbsup
0
message-simple
7

Apollo-link-state vs Redux vs React Hooks+Context

What are the pros and cons of using apollo-link-state vs managing client state separate from the GraphQL schema? What is the currently generally accepted best practice?

thumbsup
13
message-simple
16