Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Don't strip data away from the component when the query errors #98

Merged
merged 1 commit into from Jul 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/connect.tsx
Expand Up @@ -347,7 +347,7 @@ export default function connect(opts?: ConnectOptions) {
};

let oldData = {};
const forceRender = ({ errors, data = {} }: any) => {
const forceRender = ({ errors, data = oldData }: any) => {
const resultKeyConflict: boolean = (
'errors' in data ||
'loading' in data ||
Expand Down