This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Loading not set to true while setting new variables after an error #1817
Labels
has-reproduction
❤ Has a reproduction in a codesandbox or single minimal repository
Intended outcome:
Refetch a query with new variables after receiving an error from the server. I would expect
loading
to be true while this is happening.Example: https://codesandbox.io/s/n73jj3x70
Actual outcome:
Although
networkStatus
is2
(setVariables
),loading
isfalse
. This contradicts the documentation fornetworkStatus
:How to reproduce the issue:
Example: https://codesandbox.io/s/n73jj3x70
Write in the text box to update the query variables. A name that starts with "bob" will cause an error.
Notice that during Step 3, the "Loading..." state does not appear despite the network status being 2.
Note react-apollo is at
2.1.0-rc.5
; on the latest version (2.0.4
), you will instead observe #1336, and the state will switch toloading: true
but never actually make a request.Version
The text was updated successfully, but these errors were encountered: