GithubHelp home page GithubHelp logo

Comments (2)

skjnldsv avatar skjnldsv commented on May 27, 2024

Of course :)
Example:

  1. I open a tab with contacts and click the first contact
  2. I open the another one and edit the same contact with a random change
  3. Back on the first tab, edit the contact
  4. A popup will appear stating a change have been detected on the server and you need to click a button to resync the updated contact and that what you did will be discarded (this is a nice ux behaviour, no data loss, clear explanation)
  5. we retrieved the etag on the last sync attempt (denied since etag obsolete) so we can manually update the cdav-contact object to specify the new etag manually and trigger a new fullFetch to update everything :)

from cdav-library.

skjnldsv avatar skjnldsv commented on May 27, 2024

@georgehrke is it clear? 🙈
If you need a precise example, this is exactly here:
https://github.com/nextcloud/contacts/blob/134527baa933af63400c285b362d9ed889abb001/src/store/contacts.js#L281
We then use this conflict saved etag to update the dav scope linked to the vcard and force a ful refresh :)

from cdav-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.