Use Redux store to keep track of layout
This commit is contained in:
1 parent
ceb545c080
commit
ddba5d3b8c
4 files changed
+22
-15
No files matched your search
@@ -24,6 +24,7 @@ addLocaleData(localeData);
|
||||
|
||||
const store = configureStore();
|
||||
const initialState = JSON.parse(document.getElementById('initial-state').textContent);
|
||||
if (localStorage) initialState.layout = localStorage.getItem('mastodon-layout');
|
||||
store.dispatch(hydrateStore(initialState));
|
||||
|
||||
export default class Mastodon extends React.PureComponent {
|
||||
|
||||
Reference in new issue
Block a user