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

Should Redux be used with Relay? #1036

Closed
kennetpostigo opened this issue Nov 14, 2015 · 2 comments
Closed

Should Redux be used with Relay? #1036

kennetpostigo opened this issue Nov 14, 2015 · 2 comments

Comments

@kennetpostigo
Copy link

I've began learning about GraphQL, and wanted to implement in a react Application. The current way that I've found to use it with React is to use it with Relay. Should you use Relay with Redux? If so, how would you go about implementing Redux with Relay?

@gaearon
Copy link
Contributor

gaearon commented Nov 14, 2015

I'm not sure it makes much sense. Both want to own the state and have different paradigms. Relay is cool so just use it directly.

See also #464.

@gaearon gaearon closed this as completed Nov 14, 2015
@zjlovezj
Copy link

zjlovezj commented Feb 3, 2016

Sorry to update this closed thread, but I think it's worth for those who want to use both Redux and Relay in the same application.

A maintainer of Relay said:
"For applications that also need to maintain complex local state - i.e. beyond the scope of component-local state - we recommend using Flux (in particular Redux) in addition to Relay."

https://stackoverflow.com/questions/34958295/whats-relays-relationship-to-flux

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

No branches or pull requests

3 participants