Merge branch 'develop' into chats
This commit is contained in:
commit
8823743605
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,8 @@ import { ScrollContext } from 'react-router-scroll-4';
|
||||||
import UI from '../features/ui';
|
import UI from '../features/ui';
|
||||||
// import Introduction from '../features/introduction';
|
// import Introduction from '../features/introduction';
|
||||||
import { fetchCustomEmojis } from '../actions/custom_emojis';
|
import { fetchCustomEmojis } from '../actions/custom_emojis';
|
||||||
|
import { hydrateStore } from '../actions/store';
|
||||||
|
import initialState from '../initial_state';
|
||||||
import { preload } from '../actions/preload';
|
import { preload } from '../actions/preload';
|
||||||
import { IntlProvider } from 'react-intl';
|
import { IntlProvider } from 'react-intl';
|
||||||
import ErrorBoundary from '../components/error_boundary';
|
import ErrorBoundary from '../components/error_boundary';
|
||||||
|
@ -30,6 +32,9 @@ const validLocale = locale => Object.keys(messages).includes(locale);
|
||||||
|
|
||||||
export const store = configureStore();
|
export const store = configureStore();
|
||||||
|
|
||||||
|
const hydrateAction = hydrateStore(initialState);
|
||||||
|
|
||||||
|
store.dispatch(hydrateAction);
|
||||||
store.dispatch(preload());
|
store.dispatch(preload());
|
||||||
store.dispatch(fetchMe());
|
store.dispatch(fetchMe());
|
||||||
store.dispatch(fetchInstance());
|
store.dispatch(fetchInstance());
|
||||||
|
|
Loading…
Reference in a new issue