apollo-feature-requests
apollo-feature-requests copied to clipboard
🧑🚀 Apollo Client Feature Requests | (no 🐛 please).
Migrated from: apollographql/apollo-client#1541 I think that request aborts and other things from migated topics like options borrowed from Redux-Saga, for example `takeLatest` (cancelling previous request if there is new pending)...
It would be incredibly helpful to have an API that allowed us to make a hook stop re-rendering the component its in when the cached data changes. I'm imagining something...
The `useFragment` hook is fantastic for subscribing to updates on a single cached fragment. But it's not possible to subscribe to a list of fragments in the cache. Consider the...
Is it possible to add an additional property to `ApolloError` to indicate which operation the error is associated with? Would make it much less painful to implement a "retry" button...
Maybe we can have `useLazyMutation` similar to [react-query](https://tanstack.com/query/latest/docs/framework/react/guides/mutations). ``` function AddTodo() { const [addTodo, { data, loading, error }] = useMutation(ADD_TODO); return ( { e.preventDefault(); // this is a problem...
It will be very useful to be able to update the Apollo cache without having to go through a query. Long story short, if we have the following schema: ```...
We want to enable preScrolling on a list of fetched items out of an apollo client useQuery result. **As we want to save networking and db access, we throttle the...
Right now if you define a typepolicy for a Thing like so: ``` Thing: { merge(incoming, existing) => {} } ``` and Thing is normalized, incoming and existing are often...
```ts const [mutation] = useMutation(ExampleMutation, { optimisticResponse: { foo: 'bar' }, update(cache, { data }) { // From here, how can I know if the `data` is from `optimisticResponse` or...
It's easy enough to log over the network queries by adding an apollo link to your apollo client0. It would be helpful though to have a way to apply the...