-
Hello guys, does anyone have tried to user class instead of struct to conform ReducerProtocol Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @ArmenNik, generally you do not want your reducer to be a class. It is very likely to cause some extremely strange behavior that will be difficult to track down. There are other ways of sharing logic, such as using reducer methods. |
Beta Was this translation helpful? Give feedback.
-
Hi @mbrandonw thanks for answer |
Beta Was this translation helpful? Give feedback.
Hi @ArmenNik, generally you do not want your reducer to be a class. It is very likely to cause some extremely strange behavior that will be difficult to track down. There are other ways of sharing logic, such as using reducer methods.