-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add RelayContext #698
Add RelayContext #698
Conversation
Awesome, quick turnaround! I'll review in the morning but at a quick glance this looks great. |
RelayQuerySet, | ||
} from 'RelayInternalTypes'; | ||
|
||
let defaultInstance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use RelayStore
as the default instance, so we don't need a default instance or getDefaultInstance
here
Sweet, this looks great. Main theme of my feedback is that we should use |
@josephsavona Committed your suggestions. Did I understand everything right? |
nice job with this. thanks! |
@facebook-github-bot import |
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/1668105273478048/int_phab to review. |
Conflicts: src/store/RelayStore.js src/store/__tests__/RelayContext-test.js
This PR is another step toward making all Relay state contextual (#558). Originally this was submitted as a part of #683, but @josephsavona suggested to split it to smaller PRs.