Skip to content

Note about removed feature in react-apollo#18

Open
bngsudheer wants to merge 1 commit intoiamshaunjp:lesson-32from
bngsudheer:patch-1
Open

Note about removed feature in react-apollo#18
bngsudheer wants to merge 1 commit intoiamshaunjp:lesson-32from
bngsudheer:patch-1

Conversation

@bngsudheer
Copy link

Comment about missing compose in react-apollo

Comment about missing `compose` in react-apollo
@theghost1980
Copy link

Basically, compose was removed from react-apollo. Instead we must install:
npm install lodash.flowright --save
or
yarn add lodash.flowright --save
And in the code, within the AddBook component top part, use:
import compose from 'lodash.flowright';

By doing this the code will run.

@@ -1,5 +1,8 @@
import React, { Component } from 'react';
import { graphql, compose } from 'react-apollo';
Copy link

@theghost1980 theghost1980 Nov 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import { graphql } from 'react-apollo';
import compose from 'lodash.flowright';

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants