mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 03:15:09 +08:00
Remove deprecated part <3
This commit is contained in:
@@ -2,7 +2,6 @@ import React from 'react';
|
||||
import { compose, gql } from 'react-apollo';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import get from 'lodash/get';
|
||||
import branch from 'recompose/branch';
|
||||
import renderComponent from 'recompose/renderComponent';
|
||||
@@ -107,12 +106,6 @@ class EmbedContainer extends React.Component {
|
||||
this.props.data.refetch();
|
||||
this.resubscribe(nextProps);
|
||||
}
|
||||
|
||||
const { fetchAssetSuccess } = this.props;
|
||||
if (!isEqual(nextProps.root.asset, this.props.root.asset)) {
|
||||
// TODO: remove asset data from redux store.
|
||||
fetchAssetSuccess(nextProps.root.asset);
|
||||
}
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
|
||||
Reference in New Issue
Block a user