You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your strorage created yet? That is an async function that takes some time. This doesn't seem like a bug to me, just the way it works.
I had some issues with it, because I used the storage indirecty in my auth-guard (via my auth-service), which is needed almost immediately.
I solved it by initializing the storage-service in a provider:
Activity
theosnel commentedon Dec 6, 2023
Is your strorage created yet? That is an async function that takes some time. This doesn't seem like a bug to me, just the way it works.
I had some issues with it, because I used the storage indirecty in my auth-guard (via my auth-service), which is needed almost immediately.
I solved it by initializing the storage-service in a provider:
In app.module.ts:
Add this to the providers:
You don't need to call this.init() in your storage constructor anymore.
I'm not sure if this is the best solution, but at least the entire app waits until the storage is created.
rtpHarry commentedon Dec 8, 2023
I think you're encountering this: #229
theosnel commentedon Dec 8, 2023
yes, that looks like the same issue. Totally missed that, thank you.