menu

Apollo

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

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Hugh Willson
@hwillson
Ellen Shapiro
@designatednerd
Jesse Rosenberger
@abernix
Jake Dawkins
@jakedawkins
James Baxley
@jamesbaxley
Jason Paulos
@jasonpaulos
Julia Black
@juliablack
Martijn Walraven
@martijnwalraven
Khalil Stemmler
@khalilstemmler
Peggy Rayzis
@peggy
Ben Church
@bnchrch
Trevor Scheer
@trevor-scheer
Martin B
@mbonnin
Adam Zionts
@zionts
Evans Hauser
@evans
Stephen Barlow
@stephen-barlow
Ashi Krishnan
@rakshesha
Danielle Man
@daniman
Michael Watson
@michael-watson
Thao
@thao
Justin Anastos
@justin-anastos
Tim Hingston
@timbotnik
Adam Torres
@adamatorres
Alisha Ehrlich
@alisha-ehrlich
Chang Wang
@cheapsteak
Claire Hough
@clairehough
David Glasser
@glasser
François Dufour
@francois-dfr
Jenn Creighton
@jenncreighton
Matt DeBergalis
@debergalis
Sachin D. Shinde
@sachin-shinde
Posts
Members
Info

Can't figure out how to get rid of this React warning

I'm using Apollo hooks in my React Native app and I've successfully created login and registration screens. They work fine, but I'm getting this warning: "Warning: Cannot update during an existing state transition (such as within render). Render methods should be a pure function…

thumbsup
0
message-simple
15

Is there a way to configure the default fetchPolicy to be `cache-and-network`…

When instanciating the Apollo client, you can provide fetch policies for query, watchQuery and mutation. The docs mention that the Query component uses watchQuery. As the useQuery hook isn’t mentioned as well, this implies useQuery uses query instead, but cache-and-Network is no…

thumbsup
0
message-simple
0

Apollo Hooks failing on first call and then returning previous response.

Hi Y'all! I'm currently facing this odd bug with Apollo hooks that fails the first mutation call and then returns the previous response on subsequent calls. At first I thought perhaps it was loading, but checking that prop reveals it is false and not loading. Any ideas on a…

thumbsup
0
message-simple
2

`refetchQueries` for an unmounted `Query`?

How does one keep the Query in the watchers list so that it can be refetched via query name?

thumbsup
0
message-simple
0

SSR with Material-UI ReactRouterConfig Loadable-Components

Hi guys! I'm trying moving from Redux to Apollo store and facing with new challenges that Apollo brings us :) The first problem was the need for two-step rendering App component (due to MaterialUI's generate class names problem). Once solved this problem, facing with next: empty…

thumbsup
0
message-simple
3

@client cache update doesn't work as expected: "Cache data may be lost"

Apollo Client 3.0.0 RC4 I have the following client schema (reduced to only the most important parts): I added a resolver for both functions and when I try to use addNotification and removeNotification in my code, everything works as expected. The Notification objects are…

thumbsup
0
message-simple
0

Mocked Provider returning undefined error

I have a pretty simple component using a query that requires no variables: I'm unable to get a correct mocked response for the error state . The mocked provider keeps returning the error as undefined in the following test. Using react-testing-library w jest (haven't updated to…

thumbsup
0
message-simple
4

How to use Apollo with React Class syntax?

So I have a React component I have written in the class syntax (as opposed to a function). I now need to fetch data manually like here https://www.apollographql.com/docs/react/data/queries/#executing-queries-manually I don't know if this example will work. How can I adapt the…

thumbsup
0
message-simple
1

Logged in user's resources from GraphQL with Gatsby

So if I understand correctly gatsby-source-graphql can only be used at build time, so it's not useful for getting only the logged in users resources? Does this has to be done client side with Gatsby?

thumbsup
0
message-simple
0

Hooks and infinite scrolling list

I have a doubt about react-apollo and caching. I have an infinite scrolling list which tells me which elements to load, and i want to use hooks: either useQuery or useLazyQuery. The latter one seems unfit, since it discards all but last request, if they are below network time:…

thumbsup
0
message-simple
0