I got this error and was having a difficult time finding what was causing it, I found out why.
Leaving this here if someone else stumbles upon this.
<Transition
items={stuffs}
keys={stuffs.map((_item, i) => i)}
from={{ opacity: 0, transform: 'scaleY(1)', height: 'auto', transition: 'all 0.09s linear' }}
enter={{ opacity: 1, transform: 'scaleY(1)', height: 'auto', transition: 'all 0.13s ease' }}
leave={{ opacity: 0, transform: 'scaleY(0)', height: 0, transition: 'all 0.13s ease' }}
>
{(styles, stuff, attr) => {
return (
stuff && (
<animated.div key={attr.key} style={styles}>
...
</animated.div>
)
);
}}
</Transition>
🐛 Bug Report
I got this error and was having a difficult time finding what was causing it, I found out why.
Leaving this here if someone else stumbles upon this.
My mistake was having the timing without a
0in front :transition: all .20s linearChanging it to
transition: all 0.20s lineargot rid of the error.Example:
Environment
react-springv9.3.0reactv17.0.2