Anyone that have played with React-Apollo 2.1? I d...
# prisma-whats-new
p
Anyone that have played with React-Apollo 2.1? I don't seem to be able to resetStore() from Mutation component's onCompleted(). So I wonder if someone have a tip for doing this? (Simple solution I found was to pass props down, idk if that is stupid or not)
m
@pettanko Why do you use resetStore()?
p
To clear the store after user login or logout. Apollo docs says it.
m
thanks 🙂
wow looks like <Query/> and <Mutation/> are big new additions to
react-apollo
. How are you finding it?
p
https://www.apollographql.com/docs/react/essentials/mutations.html in the docs. I noticed them 2 days ago or something. Really love them, simplifying and cleaning up our code.
👍 1