-
Hi, I have a rudimentary question. I understand that the event that occurs is to update the state by notifying the Action in the send method of the ViewStore. So my question is, what kind of Action should I send when I want to do something in the lifecycle? For example, let's say I want to send a log and play a video by onAppear on a screen that plays a video. In this case, would the Action to be notified be "onAppear"? Or should it be "sendLog" and "play"? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
According to #1666 (reply in thread), onAppear or something similar should be preferred. Then in the reducer you can start both effects. |
Beta Was this translation helpful? Give feedback.
According to #1666 (reply in thread), onAppear or something similar should be preferred. Then in the reducer you can start both effects.