refactor: Make all reducers sync (#4125)
This commit is contained in:
parent
f68fa930ea
commit
37c832cdf7
8 changed files with 18 additions and 90 deletions
|
@ -23,8 +23,7 @@ const { localeData, messages } = getLocale();
|
|||
addLocaleData(localeData);
|
||||
|
||||
export const store = configureStore();
|
||||
const initialState = JSON.parse(document.getElementById('initial-state').textContent);
|
||||
export const hydrateAction = hydrateStore(initialState);
|
||||
const hydrateAction = hydrateStore(JSON.parse(document.getElementById('initial-state').textContent));
|
||||
store.dispatch(hydrateAction);
|
||||
|
||||
export default class Mastodon extends React.PureComponent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue