Closed GeoffreyChen777 closed 2 years ago
Hi, thanks for your work!
I'm learning your architecture and I found that:
.onReceive(routingUpdate) { print("update") \\ added by me. self.routingState = $0 }
the print will be performed twice. Can you explain the reason?
Please forgive me for this simple question, because I am a newbie of swift :)
Hey @GeoffreyChen777
This phenomenon is explained in the section Phantom state updates of this article. Let me know if you have follow up questions!
Hi, thanks for your work!
I'm learning your architecture and I found that:
the print will be performed twice. Can you explain the reason?
Please forgive me for this simple question, because I am a newbie of swift :)