Load the instance before verify_credentials

This commit is contained in:
Alex Gleason 2024-05-20 15:21:47 -05:00
parent 9d0345eae2
commit 9b92f30483
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 4 deletions

View File

@ -17,11 +17,8 @@ import MESSAGES from 'soapbox/messages';
const loadInitial = () => {
// @ts-ignore
return async(dispatch, getState) => {
// Await for authenticated fetch
await dispatch(fetchMe());
// Await for feature detection
await dispatch(fetchInstance());
// Await for configuration
await dispatch(fetchMe());
await dispatch(loadSoapboxConfig());
};
};