CompactForm throws error in production when child is a function
CleverAtBen opened this issue · comments
CleverAtBen commented
I have the following piece of code, aligned to a material ui stepper which works perfectly in Development.
<CompactForm layoutComponents={[RaBox]} toolbar={buttons()} {...props}>
<FormDataConsumer>
{({ formData, ...rest }) => getStepContent(activeStep, formData)}
</FormDataConsumer>
</CompactForm>
However when I move it to production I get an error thrown in CompactFormView at this point variant={x.props.variant || variant}
because x.props isnt a thing for the child function.