Giter Site home page Giter Site logo

Comments (3)

ivanperez-keera avatar ivanperez-keera commented on May 18, 2024

A passive reactive value is one that does not actively notify events or push notifications forward. That means if you write

somePassiveReactiveValue =:> someOtherReactiveValue

In principle, probably nothing would ever get executed.

They are used in two scenarios:

  1. To pair them with events and turn them into active reactive values.
  2. To pair them with active reactive values (governing).

For instance, you could do something like:

someButtonsButtonClick `governing` somePassiveReactiveValue=:> someOtherReactiveValue

And that will make the RV pass the data when the button is clicked.

Does that make sense?

As for the (-1), that means the notebook currently has no pages. The underlying function giving you the (-1) is https://developer.gnome.org/gtk3/stable/GtkNotebook.html#gtk-notebook-get-current-page

from keera-hails.

ivanperez-keera avatar ivanperez-keera commented on May 18, 2024

If you want, paste a link to your code and I'll take a look.

from keera-hails.

stewedFOSP avatar stewedFOSP commented on May 18, 2024

I needed to clear all elements on a page, and was intended to delete the current page and create a new one. I thought this would be easier, but then found that it's faster to directly delete the elements on the page. So I managed to do it without notebookGetCurrentPagePassive.
https://gitlab.com/chupin/arpeggigon/commit/345509022c1a7eea311158361bcdbaa2fbc24c32

from keera-hails.

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.