You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
halmos
changed the title
Timeout's conflict when changing some props
Timeout conflict when changing some props
Aug 28, 2016
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.
The text was updated successfully, but these errors were encountered: