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 271456e commit 367c956Copy full SHA for 367c956
src/utils/props.js
@@ -92,6 +92,11 @@ export const makePropsConfigurable = (props, componentKey) =>
92
// against in `hasPropFunction()`
93
const configurablePropDefaultFnName = makePropConfigurable({}, '', '').default.name
94
95
+console.log('configurablePropDefaultFnName', configurablePropDefaultFnName)
96
+
97
// Detect wether the given value is currently a function
98
// and isn't the props default function
-export const hasPropFunction = fn => isFunction(fn) && fn.name !== configurablePropDefaultFnName
99
+export const hasPropFunction = fn => {
100
+ console.log('hasPropFunction', isFunction(fn), fn.name)
101
+ return isFunction(fn) && fn.name !== configurablePropDefaultFnName
102
+}
0 commit comments