TL;DR: It would be great if errors from failing fetchMore calls propagate to the error object returned by useQuery
I use useQuery for a list component and fetchMore to trigger cursor-based paginated calls. I noticed that when paginated calls fail, the error can only be accessed by catch the promise returned by fetchMore. It would be great if those errors also show up in the error object returned by useQuery. It helps avoids the complication of handling error states in the component.
Hello! 🙂
TL;DR: It would be great if errors from failing
fetchMore
calls propagate to theerror
object returned byuseQuery
I use
useQuery
for a list component andfetchMore
to trigger cursor-based paginated calls. I noticed that when paginated calls fail, the error can only be accessed by catch the promise returned byfetchMore
. It would be great if those errors also show up in theerror
object returned byuseQuery.
It helps avoids the complication of handling error states in the component.