Posts
Members
Info
Reactive list
I'm trying to create a chat application with pagination and live update/delete functionality. I managed to do this with firebase in the past by creating an array of listeners. is there a way to combine fetchMore and subscribeToMore to achieve such purpose? …
0
1
#React Apollo
Hi everyone, how can I use redux with apollo, I am following this instruction(https://s3.amazonaws.com/apollo-docs-1.x/redux.html) but got error "client.reducer is not a function" Anybody can help me? Thank you for your help
0
0
Apollo + mobx-state-tree
Hello everyone in this chat, I'm interested in the question of wrapping data after receiving it from the server and before rendering. Is it possible to wrap raw data in class instances? for example, with useQuery, I received an array of books, and I wrapped them in new Book (),…
0
3
·16d# React Apollo
Apollo Client (updating cache manually)
what's the benefit of using the readQuery and writeQuery over the refetch? it seems to still make an additional network call, even says in the Apollo Docs. https://www.apollographql.com/docs/react/caching/cache-interaction/#cachemodify Like writeQuery and writeFragment, modify…
0
1
Relay Style Pagination Fetch More not triggering a render
Calling fetch more kicks off the apollo graphql call correctly in the network tab and the cache has two entries. However the react component doesn't render with the new data.
0
0
Deleting nested item from cache
I have an object type entity that can be related to another object type something through a list entityInstances. The something is also a in a list within somethingContainer: The entitys can appear in several entityInstances, but the instances are unique to their somethings, and…
0
1
relayStylePagination stops automatic refetch when variables change
I just got started with latest AC for React, using the useQuery hook. Everything works but after I added the relayStylePagination policy, useQuery no longer automatically refetches when the variables change. Any thoughts on how to fix this?
0
2
Minor problem of printing Mocked response should contain either result or error
Hello folks, I m testing a mutation query using 'react-apollo/test-utils' The test works correctly and gives right feedback for incorrect mutation parameters. Although the query fails with response "Mocked response should contain either result or error" from test environment (If…
0
0
How do you access a mutation's variables after invoked?
A mutation result returns the data, a boolean indicating whether your mutation is in flight and a few other results, but it doesn't include the arguments it was invoked with which is unfortunate. How does one access the variables a mutation was invoked with after a mutation gets…
2
8
Data gets refetched for server rendered page using pagination (SSR)
Hey everyone, I've been completely stuck with a problem for the last two days and would really appreciate some hints for solving this. Basically, I have an isomorphic app with a page that renders a list of items (e.g. 20 to begin with) and rehydration works fine. Page is…
0
0