From 450e1a83b418f642bcdb7db7b410217b3e6b911a Mon Sep 17 00:00:00 2001 From: Tom Chen Date: Wed, 11 Oct 2017 20:44:52 +0800 Subject: [PATCH] fix(withGoogleMap): make compatible with `recompose@^0.26` * Closes #659 --- src/withGoogleMap.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/withGoogleMap.jsx b/src/withGoogleMap.jsx index 859d560f..a4bf3c41 100644 --- a/src/withGoogleMap.jsx +++ b/src/withGoogleMap.jsx @@ -2,13 +2,13 @@ import _ from "lodash" import warning from "warning" import invariant from "invariant" -import { getDisplayName, createEagerFactory } from "recompose" +import { getDisplayName } from "recompose" import PropTypes from "prop-types" import React from "react" import { MAP } from "./constants" export function withGoogleMap(BaseComponent) { - const factory = createEagerFactory(BaseComponent) + const factory = React.createFactory(BaseComponent) class Container extends React.PureComponent { static displayName = `withGoogleMap(${getDisplayName(BaseComponent)})`