Comments (3)
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.
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.
@raveclassic I think we should warn about this behavior in the documentation. What do you think?
from frp-ts.
Related Issues (17)
- combine function for property HOT 5
- perf files contain ts errors HOT 2
- Unstable default clock HOT 1
- Optimise construction of observer in mergeMany combinator
- Prefer using react api for useProperty hook HOT 3
- `fromObservable` should subscribe only if there any subscription
- Docs: Clearly describe why `Property`/`Atom` skips duplicates by default in documentation
- feat: compatible with svelte by default HOT 1
- Add LICENSE HOT 1
- Link NPM packages to repository
- bug: coverage is not checked
- `Property` example in README fails to compile HOT 1
- @frp-ts/state addition HOT 7
- feat: distinctUntilChanged operator HOT 1
- [Question] Duped values - do not propagate events or simply return cached value HOT 2
- [QUESTION] There are no reactions in the react component HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frp-ts.