set interval to toggle typing prop between 1 and -1
Expected behavior
What should happen
the direction of typing / deleting should alternate
Actual behavior
What is happening
the setInterval function inside of typewriter are not being cleared and are racing/conflicting, causing erratic behavior
I was able to resolve by adding clearTimeout(this._timeoutId) inside of typewriter's componentWillRecieveProps.
Version
0.4.1
Steps to reproduce
Expected behavior
What should happen the direction of typing / deleting should alternate
Actual behavior
What is happening the setInterval function inside of typewriter are not being cleared and are racing/conflicting, causing erratic behavior I was able to resolve by adding clearTimeout(this._timeoutId) inside of typewriter's componentWillRecieveProps.