• Robert Knight's avatar
    Preserve local tag and anchoring status flags when annotations are updated (#87) · 1832a97c
    Robert Knight authored
    When receiving annotation updates via the WebSocket, merge the updated
    annotation with the existing local annotation, preserving the local tag
    and anchoring status flags.
    
    This fixes a problem where Annotations would be shown as Orphans after
    an update was received via the WebSocket
    
     * When an annotation update is received, merge the current/new
       versions rather than removing the current version and replacing
       it with the new one.
    
     * Remove mutation of existing annotation in `loadAnnotations()`,
       since the reducer function is now responsible for merging changes
       and triggering UI updates
    1832a97c
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
h Loading commit data...
images Loading commit data...
scripts Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...