This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed failed to load all packages after login (#73)
A login forces react to reload the list of available packages (by changing the state). However the state (which triggers react to refresh) is set before storing the login token resulting in fetching (XHR GET) only the public packages as the token is not yet available in the GET request. Fixed by setting the storage items ('username' and 'token') before this.setLoggedUser().
- Loading branch information