-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Do not broadcast queries if Apollo state has not changed and if the previousState actually has anything inside of it. #226
Conversation
actually i need to deepequal |
Couldn't we just do |
You may be right! I was just thinking that the store state is essentially
if we do a straight up |
Ohhhhh, wait you're right - I don't think we currently ensure that the old object is the same as the new one in our top-level reducer. So for now let's do deepEqual and see what happens, we can optimize later. Maybe add a XXX comment or file a |
Ill add a comment and update the change log later |
Btw we should probably add at least one test that checks that the observer doesn't fire if the result didn't change! This is one of those things that is really easy to accidentally break. |
Will do. |
Yeeeeere |
|
||
}); | ||
|
||
it('allows you to refetch queries with new variables', (done) => { |
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.
How did this test get into this PR? Is this a new test or did it somehow get duplicated accidentally?
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.
WHOA DUPE
Looks awesome! Just confused about that extra test that seems unrelated. |
LGTM |
Great contribution dude! |
Add documentation for Ember integration
update mutations.md formatting
TODO: