Replies: 1 comment
-
I'm also interested in hearing best practices for this subject. I can share example what I currently use in my project. Basically before running app I raise up any async dependency for services or helpers and then init app, in particular the FireBase dependencies for background Messages when app is closed, but you can extend to any service needed.
|
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
-
Hey there,
I have a (singleton) service with an
async init()
function. I would like it to be awaited before other services are initialized.First I tried overwriting the
onInit()
function asynchronously, which compiled fine but didn't await the execution. Then I used theputAsync
function which works fine so far but I'm wondering if that's the best practice as it looks like a lot of boilerplate when doing it with a lot of services.Beta Was this translation helpful? Give feedback.
All reactions