Hey guys, I'm trying to use recompose as mentioned...
# prisma-whats-new
a
Hey guys, I'm trying to use recompose as mentioned in Sashko's recent blog post. Here's my code:
Copy code
export default compose(
  withRouter,
  graphql(FeedQuery, feedQueryOptions),
  graphql(userQuery, { options: { forceFetch: true }}),
)(Module)
if you look at the two
graphql()
lines, those are both the
data
portion of my compose. It seems like only the second one gets composed on my component. I'm guessing because props.data gets overwritten? What do you do when you have multiple datas? One option I can think of is renaming the second one so it doesn't go into props.data, but not sure if that's the best/common practice
v
@aryan you need to add a
name
property to your graphql parameters
otherwise apollo doesn’t know how to reconcile the data
a
perfect. that worked 🙂
makes sense. thanks!
n
👍