Differentiate instance V1 and V2

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1635
This commit is contained in:
Alex Gleason
2024-01-12 18:10:49 -06:00
parent d97602aa74
commit 1e9b209f06
4 changed files with 30 additions and 136 deletions

View File

@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { IntlProvider } from 'react-intl';
import { loadInstance } from 'soapbox/actions/instance';
import { fetchInstance } from 'soapbox/actions/instance';
import { fetchMe } from 'soapbox/actions/me';
import { loadSoapboxConfig } from 'soapbox/actions/soapbox';
import LoadingScreen from 'soapbox/components/loading-screen';
@ -20,7 +20,7 @@ const loadInitial = () => {
// Await for authenticated fetch
await dispatch(fetchMe());
// Await for feature detection
await dispatch(loadInstance());
await dispatch(fetchInstance());
// Await for configuration
await dispatch(loadSoapboxConfig());
};