swiftui-atom-properties
swiftui-atom-properties copied to clipboard
[Question]: Update TaskAtom from within itself
Checklist
- [X] Reviewed the README and documentation.
- [X] Confirmed that this is uncovered by existing docs or examples.
- [X] Checked existing issues & PRs to ensure not duplicated.
Description
Hello
First of all, I want to express my admiration for this library =)
And secondly, I want to ask, probably, a stupid question on the technical side:
Can you tell me if it's possible to update TaskAtom from within itself without causing the View to constantly refresh and flicker?
For example, I created a very simple example to show the functionality I want to achieve and what came out of it:
https://github.com/user-attachments/assets/7453803c-e64f-47b4-8556-9df49f651531
I guest it might be possible to achieve this using intermediate Atoms or by using ObservableObject, but it doesn't look very elegant.
Motivation & Context
No response