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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/connect.tsx
Original file line number Diff line number Diff line change
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