Didn't see this question asked elsewhere. It appears that the callFunction runs twice.
<Typewriter
onInit={(typewriter) => {
typewriter.typeString("Welcome to Dev Diaries...")
.pauseFor(1000)
.deleteAll()
typewriter.typeString("The podcast for developers and technical founders.")
.pauseFor(1500)
.deleteAll()
typewriter.typeString("Launching January 2023. Join us..")
.pauseFor(1500)
.callFunction(() => {
console.log('finished typewriter text...')
})
.start();
}}
/>
The above code results in the console log spitting out the text twice. I've also tried creating a function and calling it within the .callFunction which also results in it being run twice. Thoughts? Thanks in advance. Great library.
Didn't see this question asked elsewhere. It appears that the
callFunction
runs twice.The above code results in the console log spitting out the text twice. I've also tried creating a function and calling it within the
.callFunction
which also results in it being run twice. Thoughts? Thanks in advance. Great library.