I would generally recommend not having side effects when you're constructing your dependency graph, because in 6 months when you're trying to debug why a certain call is happening in a certain order it's going to be confusing.
👍 2
y
yschimke
10/09/2021, 6:14 PM
Yeah, I agree with this advice but fear it means duplicating some startup process.
p
Peter Farlow
10/12/2021, 2:00 PM
Agree with Russell. Coming from Android, I’ve definitely found this pattern inconvenient, especially for ViewModel init blocks. They seem convenient but will definitely be painful if you have a