Skip to content

Commit 20f91af

Browse files
committed
fix(withScriptjs): make compatible with recompose@^0.26
* Closes #659
1 parent 450e1a8 commit 20f91af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/withScriptjs.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import _ from "lodash"
22
import invariant from "invariant"
33
import canUseDOM from "can-use-dom"
4-
import { getDisplayName, createEagerFactory } from "recompose"
4+
import { getDisplayName } from "recompose"
55
import PropTypes from "prop-types"
66
import React from "react"
77

@@ -10,7 +10,7 @@ const LOADING_STATE_BEGIN = `BEGIN`
1010
const LOADING_STATE_LOADED = `LOADED`
1111

1212
export function withScriptjs(BaseComponent) {
13-
const factory = createEagerFactory(BaseComponent)
13+
const factory = React.createFactory(BaseComponent)
1414

1515
class Container extends React.PureComponent {
1616
static displayName = `withScriptjs(${getDisplayName(BaseComponent)})`

0 commit comments

Comments
 (0)