Load the instance before verify_credentials
This commit is contained in:
parent
9d0345eae2
commit
9b92f30483
|
@ -17,11 +17,8 @@ import MESSAGES from 'soapbox/messages';
|
||||||
const loadInitial = () => {
|
const loadInitial = () => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return async(dispatch, getState) => {
|
return async(dispatch, getState) => {
|
||||||
// Await for authenticated fetch
|
|
||||||
await dispatch(fetchMe());
|
|
||||||
// Await for feature detection
|
|
||||||
await dispatch(fetchInstance());
|
await dispatch(fetchInstance());
|
||||||
// Await for configuration
|
await dispatch(fetchMe());
|
||||||
await dispatch(loadSoapboxConfig());
|
await dispatch(loadSoapboxConfig());
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue