Skip to content

Commit 08d7ed1

Browse files
committed
fix: return null for null types, fixes #1324
1 parent c019663 commit 08d7ed1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/reconciler/resolver.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ export function resolveNotComponent(type) {
6666
return undefined;
6767
}
6868

69-
export const resolveSimpleType = type => resolveProxy(type) || resolveUtility(type) || type;
69+
export const resolveSimpleType = type => {
70+
if (!type) {
71+
return type;
72+
}
73+
74+
return resolveProxy(type) || resolveUtility(type) || type;
75+
};
7076

7177
export const resolveType = (type, options = {}) => {
7278
if (!type) {

0 commit comments

Comments
 (0)