We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f479f34 commit 9b25c36Copy full SHA for 9b25c36
src/components/TypeWriter.jsx
@@ -56,7 +56,7 @@ class TypeWriter extends React.Component {
56
nextToken = componentTokenAt(this, this.state.visibleChars);
57
58
if (token && onTyped) {
59
- onTyped(token);
+ onTyped(token, prevState.visibleChars);
60
}
61
62
// check the delay map for additional delays at the index.
0 commit comments