crazko/use-dencrypt-effect

infinite loop

Closed this issue · 5 comments

Hi,
I'm new to react. I don't know how to run this hook.
Just I have used this as it. But the text effect is not running infinitely. Can you please help with this problem?
The effect is running only one.

Can you show the code? Maybe upload the example on https://codesandbox.io/. I can't help without seeing anything.

https://codesandbox.io/s/nifty-shaw-v7ybq?fontsize=14&hidenavigation=1&theme=dark
Actually, my problem is I want the same word to show up many times

Actually the code is working when we use two or more different words. for a single word or for same words it is not working.

Hi, thanks for your example. Actually it is connected with #3 I'm still looking for the final solution.

I've just published new, improved version that should be capable of running the effect with identical words. API has changed, so it's a major pre-release 2.0.0-rc.1. More info in https://github.com/crazko/use-dencrypt-effect/blob/feature/initial/README.md, it also contains examples.

Please, try it and let me know if it behaves correctly.