We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c446b09 commit 4a2a29bCopy full SHA for 4a2a29b
packages/core/src/utils/serializeNode.tsx
@@ -20,7 +20,7 @@ export const serializeComp = (
20
props = Object.keys(props).reduce((result: Record<string, any>, key) => {
21
const prop = props[key];
22
23
- if (prop === undefined || prop === null) {
+ if (prop === undefined || prop === null || typeof prop === 'function') {
24
return result;
25
}
26
@@ -31,7 +31,7 @@ export const serializeComp = (
31
32
return serializeComp(child, resolver);
33
});
34
- } else if (prop.type) {
+ } else if (typeof prop.type === 'function') {
35
result[key] = serializeComp(prop, resolver);
36
} else {
37
result[key] = prop;
0 commit comments