Skip to content

Instantly share code, notes, and snippets.

@peterpme
Created April 20, 2018 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterpme/7cf39a1a569322f125d92e34b921b788 to your computer and use it in GitHub Desktop.
Save peterpme/7cf39a1a569322f125d92e34b921b788 to your computer and use it in GitHub Desktop.
compose imports from redux / react-apollo
import { compose } from "redux";
import { compose } from "react-apollo";
// your InfoScreen implementation
// bottom of file:
export default compose(
connect(mapStateToProps, mapActionCreators),
withLoadingScreen
)(InfoScreen)
@tommyblue
Copy link

I think you want to import { connect } from "redux";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment