Handling Multiple State Changes with onChange in TCA #3212
Unanswered
JongHyunLee84
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @JongHyunLee84, can you explain more what you mean by this: but it was flagged as a duplicate I believe that code should work just fine to be notified when any value in the tuple changes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about the onChange method in Reducer.
I am currently transitioning my Combine-based project to TCA. Is there a way to handle multiple values at once in onChange, similar to how CombineLatest works in Combine?
For example, in Combine I have the following code:
In TCA, I am currently using the following approach:
I also came across the following example code, but it was flagged as a deprecated:
Is there an alternative way to achieve this? If you have any solutions or suggestions, I would greatly appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions