Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 913ffbb

Browse files
committedJan 18, 2021
remove setting error to undefined to enable SSR with Next.js (getServerSideProps)
1 parent 206bd44 commit 913ffbb

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed
 

‎src/core/buildSlice.ts

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export function buildSlice({
9898
if (substate.requestId !== meta.requestId) return;
9999
substate.status = QueryStatus.fulfilled;
100100
substate.data = copyWithStructuralSharing(substate.data, payload.result);
101-
substate.error = undefined;
102101
substate.fulfilledTimeStamp = payload.fulfilledTimeStamp;
103102
});
104103
})

‎test/errorHandling.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ describe('query error handling', () => {
148148
isError: false,
149149
isSuccess: true,
150150
data: { value: 'success' },
151-
error: undefined,
152151
})
153152
);
154153
});

0 commit comments

Comments
 (0)
This repository has been archived.