I'm getting "2 Warning: You cannot call prepareStyles() on the same style object more than once." on an Avatar component with the below code:
<Card className="blabla"
style={mystyle}>
<CardMedia>
<Avatar src={myPictureUrl}/>
</CardMedia>
<!-- ... -->
</Card>
Versions:
outdated version, this is fixed
I still have this issue:
Temporary solved
<Card className="blabla" style={mystyle}>
<CardMedia>
<div>
<Avatar src={myPictureUrl}/>
</div>
</CardMedia>
<!-- ... -->
</Card>
Still a problem in 0.18.1
. Including the
<CardMedia
overlay={
<CardTitle
title={this.props.device.label}
subtitle={`Created ${moment(this.props.device.created).fromNow()}`}
/>
}
overlayContentStyle={{background: background}}
>
<img src={this.chooseImage(this.props.device.label)} alt="" />
<CheckIcon />
</CardMedia>
nndung179's workaround of wrapping the element in a div works.
Most helpful comment
I still have this issue:
Temporary solved