React alpha.3 is quite strict with type handling of components. I have a bunch of new errors for when it expects a function but gets an object or undefined back.
Uncaught (in promise) Error: Component's "onCancel" property should be a function, but got [object] instead
debug.module.js:1 Uncaught (in promise) Error: Component's "onFocus" property should be a function, but got [undefined] instead
Is this as expected? It would be fine if it were just in my code as I could fix it to never use onCancel={null}, but I'm getting errors back for dependencies I'm using, forcing me to add something like onFocus={()={}} even if I would prefer not to pass in that prop at all.
React alpha.3 is quite strict with type handling of components. I have a bunch of new errors for when it expects a function but gets an object or undefined back.
Uncaught (in promise) Error: Component's "onCancel" property should be a function, but got [object] insteaddebug.module.js:1 Uncaught (in promise) Error: Component's "onFocus" property should be a function, but got [undefined] insteadIs this as expected? It would be fine if it were just in my code as I could fix it to never use
onCancel={null}, but I'm getting errors back for dependencies I'm using, forcing me to add something likeonFocus={()={}}even if I would prefer not to pass in that prop at all.