Giter VIP home page Giter VIP logo

Comments (4)

polarfoxDev avatar polarfoxDev commented on July 17, 2024

The problem is that when the reload is finished while the user is changing some data it would get overwritten by the reload.. @4pp-Engine: any idea on how to prevent that behaviour?

from stundenstein.

4pp-Engine avatar 4pp-Engine commented on July 17, 2024

You could show a dialog (like ErrorDialog) In/which you explain to the user, that the data has beem changed outside the app und inside the app and let the user choose which of both he wants to keep.
(Show the data of both, so he can see the difference)

from stundenstein.

4pp-Engine avatar 4pp-Engine commented on July 17, 2024

Or you override the local data by the data of the server.
I think it should be clear, that the user should modify the data on different places..

from stundenstein.

polarfoxDev avatar polarfoxDev commented on July 17, 2024

I don't think the first idea works in this case, because what should happen when for example the tracker has been stopped from outside and the user selects to keep the data.. That would cause unneccessary conflicts etc..

Second solution is what I wanted to do.. I just have to take care that those updates don't interfere with updates the user sends to the APIs (like stopping, modifiying etc).. Then I should be able to compare the server data with the local each field seperately and only change the local value to the server value if different (and if the system isn't updating anything via the APIs in that moment)

from stundenstein.

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.