Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apollo-client with mobx store #1359

Closed
mistic opened this issue Mar 3, 2017 · 2 comments
Closed

apollo-client with mobx store #1359

mistic opened this issue Mar 3, 2017 · 2 comments

Comments

@mistic
Copy link

mistic commented Mar 3, 2017

Hi guys,

It's possible to use apollo-client with an app currently using mobx store?
What's the problems and difficulties that can/will appear in the future?

Regards

@helfer
Copy link
Contributor

helfer commented Mar 6, 2017

Apollo Client will work just fine with your mobx application, even if the GraphQL data isn't stored in Mobx but in Apollo's own Redux store. Redux is a very small library, so the additional dependency shouldn't matter. No matter which kind of state management solution you're using, you don't have to care about what type of store Apollo Client uses, unless you want to manipulate it directly (which we don't recommend anyway).

If you don't have complex dependencies between the data in your Mobx store and the data in your apollo store, I don't anticipate any difficulties. For example, if Mobx handles your application's client / local state and Apollo handles all the server state, you will be just fine and don't need to worry.

Does that answer your question?

@calebmer
Copy link
Contributor

I’m going to close this because Apollo Client does work great in your mobx applications today! In the future we may also have a pluggable store architecture. Follow this issue for more information #1432

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants