I’m using either refetch() from a cell’s success prop or the refetchQueries() function inside useMutation to reload a cell’s query after a form submission. i.e. import { QUERY } from 'some/cell' and then `refetchQueries: [{ query: QUERY }].
What I’m hoping to achieve is that the cell from which the query is imported, renders its loading state whenever the query is refetched, and its error state if the refetch throws. Is there any way to do this without manually keeping and passing around these states?
This updating flag is correctly reflecting if the query is in-flight even without setting notifyOnNetworkStatusChange. Still would prefer not having to do this in the Success component. Anything else I might have missed?