Closed dromse closed 3 months ago
28d16a0 fixed counter resets, but bug with common task is still persist.
I understand that problem is filter function goes before history list updates,
but I cannot understand currently how to fix that.
I need to make more deep review with this problem.
Now I found useSyncExternalStore
hook from React API, cannot understand how to implement it, but it seems to be helpful for fixing this issue, at first sight.
I think it will be more better solution if I rewrite functionality of parsings to work in plain TS and use custom hooks only for loading lists. I think using parsing and updating value through hooks is too overwhelming.
396d4170e21c9bca1de1a217ddb3116b35b622be I've added live reloading on vault modification. It fixed the issue with history old state, history is used to check if a recurring task is need to show today or not. Also I've rewritten handling of recurring tasks. It resets them before filtering instead of resetting them during it.
When history list is empty, recurring feature works buggy
Environment
Linux
1.5.12
1.0.2
Description
History list must be empty. When recurring task is done, it resets and still persist in tasks list, when second done it become done correctly.