Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function handleStoreChange( store, _refreshAnalysis ) {
const previousAnalysisData = currentAnalysisData || "";
currentAnalysisData = store.getState().analysisData.snippet;
const isDirty = ! isShallowEqualObjects( previousAnalysisData, currentAnalysisData );
if ( isDirty ) {
_refreshAnalysis();
}
}
shouldComponentUpdate( nextProps ) {
return ! isShallowEqual( nextProps, this.props );
}
function handleStoreChange( store, app ) {
const previousAnalysisData = currentAnalysisData || "";
currentAnalysisData = store.getState().analysisData.snippet;
const isDirty = ! isShallowEqualObjects( previousAnalysisData, currentAnalysisData );
if ( isDirty ) {
app.refresh();
}
}
function handleStoreChange( store, app ) {
const previousAnalysisData = currentAnalysisData || "";
currentAnalysisData = store.getState().analysisData.snippet;
const isDirty = ! isShallowEqualObjects( previousAnalysisData, currentAnalysisData );
if ( isDirty ) {
app.refresh();
}
}
shouldComponentUpdate( nextProps ) {
if ( ! isShallowEqual( nextProps, this.props ) ) {
return true;
}
return false;
}
function handleStoreChange( store, _refreshAnalysis ) {
const previousAnalysisData = currentAnalysisData || "";
currentAnalysisData = store.getState().analysisData.snippet;
const isDirty = ! isShallowEqualObjects( previousAnalysisData, currentAnalysisData );
if ( isDirty ) {
_refreshAnalysis();
}
}