# All channels
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…
Can I re-execute a query with additional fields?
Hey all, this is my first post here. I am wondering if there's a way to have a query which I can conditionally add fields to? For example I want to fetch an organization to get the overview, but then if the user wants to switch tabs to see all members of the organization, I need…
apollo@react-hooks vs async await mechanism
Hey everyone. I just started using graphQL and Apollo in a project and I have a short question. Which version is better from a performance point of view: catching the error in the useMutation options: onError or using a try-catch with async await? It's ok to use async-await when…
HOOKS: map array by argument (Increment / Alphabetised etc)
Testing how to map a list with Star Wars characters, but how can I change which field they're mapped by (height / name etc) and how it's organised (incremental height, alphabetised first name etc)? Links/forks welcome. SANDBOX:…
Error handling with `apollo-link-error` and displaying error
Hey, I have managed to capture the errors fine, but Im wondering what is the ebst way to display a error message in my application globally. does any one have an diea of implementaiton, my only solution right now involves redux.
How to make loading state lasts longer when using MockedProvider?
Hello! Is it possible to somehow make loading state lasts longer when using MockedProvider? I would like to display a component in storybook and would be awesome if there was such an option so QA can check different states.