Bug #17231
closed
Stuck on loading screen after login
Added by Peter Amstutz almost 4 years ago.
Updated almost 4 years ago.
Release relationship:
Auto
Description
I don't know if this happens every time or just sometimes, but after logging in, I get stuck at a screen with a spinner and the app never loads. The workaround is to reload the page.
- Description updated (diff)
- Subject changed from Sometimes stuck on loading screen after login to Stuck on loading screen after login
- Target version set to 2021-01-06 Sprint
- Assigned To set to Daniel Kutyła
- Status changed from New to In Progress
- Target version changed from 2021-01-06 Sprint to 2021-01-20 Sprint
From chat:
from what I see when this replace action is triggered there is no user data within the store
that is why I am saying that store is not ready
yea I see. the redirect is chained after saveApiToken() but if you look at saveApiToken() it looks like the getUserDetails promise is what gets returned
so the the INIT_USER action and the redirect action get dispatched at the same time
so, I think we want to return a promise from saveApiToken() that calls back after INIT_USER
like, the timeout trick works, but it's a hack, we should sequence the callbacks correctly
- Status changed from In Progress to Resolved
Also available in: Atom
PDF