• Robert Knight's avatar
    Avoid fetching annotations twice if user ID and focused group change at the same time · 9970a294
    Robert Knight authored
    The sidebar had two separate watchers checking for a change in the
    current user ID and focused group, each of which independently called
    `loadAnnotations`. Therefore if both changed at the same time,
    annotations could be loaded twice. This happens when logging out if a
    private group was selected prior to doing so, since the group switches
    to "Public" at the same time as the userid becomes `null`.
    
    This commit fixes the issue by consolidating the check for a change in
    group ID and a change in user ID into a single watcher. If either or
    both change, `loadAnnotations` will only be called once.
    9970a294
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc 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...
package-lock.json Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...