Need help solve issue with createEffect, complex state
I have the app here https://github.com/nikitavoloboev/kuskus
GitHub
GitHub - nikitavoloboev/kuskus: Fast todo app
Fast todo app. Contribute to nikitavoloboev/kuskus development by creating an account on GitHub.
11 Replies
GitHub
kuskus/All.tsx at main · nikitavoloboev/kuskus
Fast todo app. Contribute to nikitavoloboev/kuskus development by creating an account on GitHub.
I have a key event listener here
that on return chooses if a todo should be edited or not
so from this go to this
the editable todo is this component
GitHub
kuskus/TodoEdit.tsx at main · nikitavoloboev/kuskus
Fast todo app. Contribute to nikitavoloboev/kuskus development by creating an account on GitHub.
GitHub
kuskus/TodoEdit.tsx at main · nikitavoloboev/kuskus
Fast todo app. Contribute to nikitavoloboev/kuskus development by creating an account on GitHub.
the issue I get is that this effect inside TodoEdit runs instantly
its very confusing
if you wish to help please clone https://github.com/nikitavoloboev/kuskus
GitHub
GitHub - nikitavoloboev/kuskus: Fast todo app
Fast todo app. Contribute to nikitavoloboev/kuskus development by creating an account on GitHub.
then inside localhost press
n
key
type a todo and press return
it should create a new todo
I am forced to enter return
2 times
ok this helped solve it 🎊