"Extract"/reuse common code of presenter #323
Replies: 1 comment
-
|
ok, seems a bit of a silly question actually. 🙄 i figured that the calculation return value could be a state property rather than being split up in the individual properties. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi,
I'm having a presenter that does a calculation of some properties on multiple Events like:
How do you deal with re-using code within a presenter?
Is there any alternative than extracting the calculation to a function that wraps the property results in a result class and update properties with the result?
Beta Was this translation helpful? Give feedback.
All reactions