From 25d78a95adaf9b4b7392e16d18f7f3d58e3de192 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Wed, 2 Feb 2022 19:14:58 +0100 Subject: [PATCH] Update state.ts --- packages/react-urql/src/hooks/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-urql/src/hooks/state.ts b/packages/react-urql/src/hooks/state.ts index d8ebad2d08..8cb952eec0 100644 --- a/packages/react-urql/src/hooks/state.ts +++ b/packages/react-urql/src/hooks/state.ts @@ -27,7 +27,7 @@ export const computeNextState = ( const newState = { ...prevState, ...result, - data: result.data !== undefined ? result.data : prevState.data, + data: result.data !== undefined || result.error ? result.data : prevState.data, fetching: !!result.fetching, stale: !!result.stale, };