Skip to content

Commit 8edf1f2

Browse files
committed
docs(contacts): explain skipSort in fetchFullContact
Signed-off-by: v3DJG6GL <72495210+v3DJG6GL@users.noreply.github.com>
1 parent 51e9d49 commit 8edf1f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/store/contacts.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ const actions = {
407407
.then(() => {
408408
const vcardData = contact.dav.data
409409
const newContact = new Contact(vcardData, contact.addressbook)
410+
// skipSort: opening a contact must not visibly reorder the list.
411+
// The server's REV rarely differs from the cached one here; if it
412+
// does, the next mutation will re-sort.
410413
context.commit('updateContact', { contact: newContact, skipSort: true })
411414
})
412415
.catch((error) => { throw error })

0 commit comments

Comments
 (0)