Skip to content

Commit

Permalink
fix: return null for null types, fixes #1324
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Sep 10, 2019
1 parent c019663 commit 08d7ed1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/reconciler/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ export function resolveNotComponent(type) {
return undefined;
}

export const resolveSimpleType = type => resolveProxy(type) || resolveUtility(type) || type;
export const resolveSimpleType = type => {
if (!type) {
return type;
}

return resolveProxy(type) || resolveUtility(type) || type;
};

export const resolveType = (type, options = {}) => {
if (!type) {
Expand Down

0 comments on commit 08d7ed1

Please sign in to comment.