-
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
Preserve referential equality from previous result in the store #1136
Merged
helfer
merged 21 commits into
zero-decimal-six
from
refactor/preserve-referential-equality
Jan 9, 2017
Merged
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a062622
add referential equality with previous store result
calebmer 8738b44
change code style
calebmer bae06ed
refactor nested array comparison in resultMapper
calebmer 6468846
add some high level explanation of what is going on
calebmer a4931fd
move some functions around to help with file legibility
calebmer 190a86a
add some more inline comments to JSON equality check
calebmer 5833dc4
refactor readQueryFromStore to support new options
calebmer 8476608
don’t let addPreviousResultToIdValues mutate values
calebmer e1eae36
use result key instead of fieldName for resolver
calebmer 08b69dd
compare result keys
calebmer 249c552
use previous result in queryListenerForObserver
calebmer a1ae3b6
Merge branch 'zero-decimal-six' into refactor/preserve-referential-eq…
calebmer d314e2f
code formatting
calebmer ff1af8d
add changelog item
calebmer c1a0b09
add test for watch query
calebmer c97b0f8
Update CHANGELOG.md
calebmer d74149f
add a test for array comparison
helfer af36e8e
check array length before comparing items
calebmer ec2163e
nitpick code aesthetics
helfer f127dbb
get referential equality in getCurrentResult
helfer 24a1a32
add test for currentResult referential equality
helfer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This misses the important point that this applies to sub-objects in the result, not just the whole result (which was true before!)
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.
Fixed 👍