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

Mutations, Client (React)

An example is straightforward, but why does it make two requests? the result onSubmit is Loading printed twice, the same as Data.

thumbsup
0
message-simple
0

useQuery returning undefined

Hey people, whenever I'm using useQuery on my application, the first query that I left below results on data as undefined (and no error either on Network level, nor on the useQuery return). The second query works perfectly, the only difference is the hardcoded data from the鈥

thumbsup
0
message-simple
0

returned data becomes "null" in the cache

i am using apollo-link-rest to perform a POST /login with formdata i a react app, and getting a userobject back if successful login. But the cache does not place the returned json in the apolloclient cache, it adds the user object and all the fields, but all values are null i鈥

thumbsup
0
message-simple
0

How to poll silently, update cache and avoid rerending

Hi all, I am using React Apollo in a react native app. One of the screens on this app relies on data being fetched from the server of a list of items. App.js looks like the following at the end: const WithProvider = () => ( 鈥

thumbsup
0
message-simple
0

Following Manage Local State Example, I get @client is undefined

Hello all, I am very new to all this. I followed this example but I get unknown directive @client. I am just trying to figure out how to have some local data in my app. I tried adding the cache section to my create.js file but then I got cache is鈥

thumbsup
0
message-simple
1

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鈥檛 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