#450 - dispatch login after saved state is loaded
Closes #450 (closed)
Merge request reports
Activity
If this codes is added, the verify request is repeated 2 times in persisted_state.js and after_store.js file. And, there is a
promise
in loginUser action, so it would be better to useawait
.I bet this way will not work if the request by loginUser is delayed than other requests of setup in after_store js. Generally, it doesn't happen because some requests and functions take time before apply router. It looks as if verify request done in time, but it can't be right way.
Additionally, I think it's not appropriate to add login dispatch in persisted_state.js file. Thanks.
Edited by Jasper Lingersmentioned in commit b02085f2
mentioned in merge request !709 (merged)
mentioned in commit 85e9e520
Please register or sign in to reply