diff --git a/lib/utils/plugins.js b/lib/utils/plugins.js index 164d3a1c..776d6226 100644 --- a/lib/utils/plugins.js +++ b/lib/utils/plugins.js @@ -3,6 +3,7 @@ import {connect as reduxConnect} from 'react-redux'; // we expose these two deps to component decorators import React from 'react'; +import Component from '../component'; import Notification from '../components/notification'; import notify from './notify'; @@ -451,7 +452,7 @@ function getDecorated(parent, name) { let class__; try { - class__ = fn(class_, {React, Notification, notify}); + class__ = fn(class_, {React, Component, Notification, notify}); } catch (err) { console.error(err.stack); notify('Plugin error', `${fn._pluginName}: Error occurred in \`${method}\`. Check Developer Tools for details`);