We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7ac17 commit c43db4aCopy full SHA for c43db4a
1 file changed
src/factory.js
@@ -1,7 +1,5 @@
1
"use strict";
2
3
-const React = require("react");
4
-
5
const CircularComputedError = require("./_CircularComputedError");
6
7
const {
@@ -50,12 +48,12 @@ class Spy {
50
48
}
51
49
52
53
-module.exports = ({ Component }) => {
+module.exports = ({ Component, PureComponent = Component }) => {
54
function withStore({ computed, effects, initialState }, fn) {
55
const computedKeys = computed === undefined ? EMPTY_A : keys(computed);
56
const effectsKeys = effects === undefined ? EMPTY_A : keys(effects);
57
58
- return class Decorated extends React.PureComponent {
+ return class Decorated extends PureComponent {
59
constructor(props) {
60
super(props);
61
0 commit comments