Answer the question
In order to leave comments, you need to log in
Can MobX be used with Apollo?
What tasks does Apollo take on? Will there be conflicts between MobX and Apollo?
Answer the question
In order to leave comments, you need to log in
Can.
Apollo in its cache can store all application data related to the server (in fact, this is everything except for the UI state and a couple of little things like the user session)
So mobx just becomes less sense, but it doesn’t disappear at all - if you need to fumble the state for some reason component to each other.
The guys at Apollo suggest using it as a store and accessing the local state with gql in the same way as accessing remote data. I'm not sure how convenient this approach is in working with the state of components, but the ability to add some local properties to the data is quite good.
here you can read: https://www.apollographql.com/docs/react/essential...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question