Remove cache store

This commit is contained in:
Jori Lallo
2017-04-29 14:08:15 -07:00
parent 70dad7aa47
commit 4907bd5d75
6 changed files with 6 additions and 77 deletions

View File

@@ -20,12 +20,11 @@ import styles from './DocumentScene.scss';
// const cx = classNames.bind(styles);
@keydown(['cmd+/', 'ctrl+/', 'c', 'e'])
@inject('ui', 'cache')
@inject('ui')
@observer
class DocumentScene extends React.Component {
static propTypes = {
ui: PropTypes.object.isRequired,
cache: PropTypes.object.isRequired,
routeParams: PropTypes.object,
params: PropTypes.object.isRequired,
location: PropTypes.object.isRequired,
@@ -34,10 +33,7 @@ class DocumentScene extends React.Component {
constructor(props) {
super(props);
this.store = new DocumentSceneStore(
JSON.parse(localStorage[DOCUMENT_PREFERENCES] || '{}'),
{
cache: this.props.cache,
}
JSON.parse(localStorage[DOCUMENT_PREFERENCES] || '{}')
);
}