menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
Team
Posts
Members
Info

Manually running query only (no query immediately on render)

I'm trying to use a query component to fetch data but only when/if I need it. Rendering a <Query> component will always fire and then I can call refetch, however, I don't want the first query to automatically fire. What's the best way? I was thinking I could force skip to true…

thumbsup
0
message-simple
0

Getting props in compose()

I've got a container where I'm building some graphql queries to pass to Companies component. I've got categoryId in the props. Can I get at categoryId from props? I want to pass it to companiesByCategoryId and categoriesById …

thumbsup
0
message-simple
0

Resetting Apollo store on react-native/expo is slow as hell/freezes

Hi! I'm building a react-native app with apollo + expo. After a logout i want to reset the store. Are there known issues? It takes up to 70 seconds (!!) to get back to interactive? The Web version is running just fine

thumbsup
0
message-simple
1

How to update cache 'react-apollo-hooks'

Tell me, how can I update the cache, maybe I need to use useApolloClient?

thumbsup
0
message-simple
1

Use apollo-client in place of Redux

Is it possible to use apollo-client as a replacement for Redux to simply manage client-side state? It appears that uri needs to be set and the client-side schema should extend an existing (server-side) schema. Is there a way to have only a client-side schema?

thumbsup
1
message-simple
7

Changing default caching policy on Apollo Client

Is it possible to set the caching policy on the Apollo Client? I'd like to change the default policy there instead of on my queries/mutations.

thumbsup
0
message-simple
1

Apollo Cache is empty after query is done

I'm running a query using a HOC and I see that after loading is false and networkStatus is 7 the cache is empty. Can someone please explain to me when are the query results placed in the cache. The documentation isn't that informative regarding Apollo Cache... Thanks!

thumbsup
0
message-simple
1
Alex K·17h

Custom scalars for apollo-client resolvers?

Does anyone know if the custom scalars in the apollo-client resolvers fire? Can't seem to get them to run :(

thumbsup
0
message-simple
1

apollo-client without link option passed

I've been working on using apollo-client as a state management solution and came upon this "issue". If I set up ApolloClient like so, omitting link and cache: const client = new ApolloClient({ typeDefs, …

thumbsup
0
message-simple
1

The best way to save redux state data with graphql

In the examples, you can query using jsx in the <Query /> tag. Is there a logical way to use it in saga or action? Or use a Rest APi

thumbsup
0
message-simple
1