Giter Site home page Giter Site logo

Comments (3)

raveclassic avatar raveclassic commented on August 17, 2024 1

Hey @Nedgeva, thanks for the issue.
The main idea, as mentioned by @Fyzu, is that Property/Atom describe values, not sequences of events. There's no "timeline" concept for a Property/Atom, only its value and change notification. If value doesn't change (references are equal), there's no change notification.
Speaking about events, it's semantically incorrect to describe an "event" with a Property/Atom. We can only describe something like declare const lastClick: Property<MouseEvent | undefined> or declare const allClicks: Property<readonly MouseEvent[]>, due to the push-pull nature of frp-ts. If we want to describe infinite sequence of clicks, we should rather use a push-observable implementation like rxjs/most.

@Fyzu Good point. Documentation definitely needs improvements. I'll log a linked ticked and close this [Question].

from frp-ts.

Fyzu avatar Fyzu commented on August 17, 2024

I discussed about this with @raveclassic.
frp-ts not about events, about working with state.
If you need stream and every event is important, use something else. :)

from frp-ts.

Fyzu avatar Fyzu commented on August 17, 2024

@raveclassic I think we should warn about this behavior in the documentation. What do you think?

from frp-ts.

Related Issues (17)

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.