# All channels
Sachin D. Shinde@sachin-shinde
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…
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…
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…
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…
@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…
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…
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…
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:…