Load the instance before verify_credentials

environments/review-sign-order-hh6cw2/deployments/4615
Alex Gleason 4 months ago
parent 9d0345eae2
commit 9b92f30483
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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());
};
};

Loading…
Cancel
Save