Open mrdziuban opened 1 month ago
Currently updating the rate prop after initial render has no effect. It looks like this is because componentDidUpdate calls toggleHowler and toggleHowler does not call this.rate like it does with this.volume.
rate
componentDidUpdate
toggleHowler
this.rate
this.volume
This updates toggleHowler to add the appropriate call to this.rate when the new rate prop differs from the previous prop.
Currently updating the
rate
prop after initial render has no effect. It looks like this is becausecomponentDidUpdate
callstoggleHowler
andtoggleHowler
does not callthis.rate
like it does withthis.volume
.This updates
toggleHowler
to add the appropriate call tothis.rate
when the newrate
prop differs from the previous prop.