• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...