andrewhathaway / Winterfell

Generate complex, validated and extendable JSON-based forms in React.
http://winterfell.andrewhathaway.net
MIT License
785 stars 116 forks source link

TypeError: this.props.onRender is not a function #95

Closed Walteristic closed 7 years ago

Walteristic commented 7 years ago

Hi Andrew,

I have encounter this issue 'this.props.onRender is not a function' while using Winterfell. winterfell_issue1

However, the form works fine after I closed the console report. Is there a bug I should be concerned about? Or it is safe to ignore?
winterfell_issue2

Thanks.

Cheers, Walteristic.

andrewhathaway commented 7 years ago

Hi @Walteristic!

It has become apparent that Winterfell now requires all of the event props, even if they're empty functions, for some reason. I'll be looking in to this shortly, but for now you should be able to pass the onRender, onUpdate, onSubmit and onSwitchPanel props to prevent these errors.

Thanks!