Giter Club home page Giter Club logo

Comments (6)

lamby avatar lamby commented on August 23, 2024

(This is the Chrome Javascript console)

from overture.

chris-morgan avatar chris-morgan commented on August 23, 2024

Your first guess is correct: Overture has an event loop of its own with multiple queues to handle efficient propagation of values, UI drawing, &c. It’s O.RunLoop (the built docs, incidentally, are out of date, but adequate).

You need to either run O.RunLoop.flushAllQueues() after your changes, or wrap it in O.RunLoop.invoke() like this:

O.RunLoop.invoke(() => {
    FastMail.mail.screens.compose.instance.set('subject', 'New subject');
});

(BTW, beginPropertyChanges and endPropertyChanges are generally not needed; they’re only needed if you’re updating multiple properties simultaneously that must be indeed changed simultaneously—rare—or if a value may be updated more than once and you don’t want to trigger observers for the intermediate values—also quite uncommon. There are a few more related situations where they’re purely for efficiency, and those are most of the uses in the FastMail UI.)

I was thinking about this very issue of convenience a week or two ago, and whether there was any way of hooking into the dev tools to run O.RunLoop.flushAllQueues() at the end of every user invocation; I didn’t find a way of doing it (all I managed was killing the browser by an injudicious console Proxy which managed a self-DoS!). If you know or can find any way of doing it, I’d be delighted.

from overture.

lamby avatar lamby commented on August 23, 2024

Thanks, really really appreciated.

from overture.

lamby avatar lamby commented on August 23, 2024

@chris-morgan Hi Chris, I'm having new problems here in that whilst I'm calling:

FastMail.mail.draft.set('cc', val)

... within a O.RunLoop.invoke closure, the UI is not being updated.

from overture.

chris-morgan avatar chris-morgan commented on August 23, 2024

At this point I’m going to say we’re not going to help you with it. Overture is open source (and that’s why I answered your initial query, because it pertained directly to Overture), but the FastMail web interface itself isn’t. If from what you can access you can figure it out, well and good; but we’re not going to provide any direct assistance on it.

from overture.

lamby avatar lamby commented on August 23, 2024

@chris-morgan Totally understand and appreciate, don't worry. This was not only technically (cheekily?) the wrong venue for such a question, it probably should not be asked anyway. (Saying that, I have some slight aversion to open source projects that have a single main user with essentially a single usage of.. but that's a different, wider topic to be had over a $beverage sometime!)

from overture.

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.