jbreckmckye / trkl Goto Github PK
View Code? Open in Web Editor NEWReactive microlibrary with observables and Knockout-style computeds in 383 bytes
License: Apache License 2.0
Reactive microlibrary with observables and Knockout-style computeds in 383 bytes
License: Apache License 2.0
I noticed that the most recent subscribe()
callback is fired first when the value changes. This is a bit counter-intuitive compared to events in the browser and other subscription models I've used, which are first-in, first-out.
Could you explain why this decision decision was made? Just trying to wrap my head around things. Thanks again!
Very clever solved with the read function and the computation tracker :). At first I really wondered, how is he doing this computed thing without directly referencing the dependencies. But when I saw the read function it made click ๐
How is the stacktrace for errors in subscriber functions, is it good readable?
I am thinking about using your lib for handling ui state. (Already using flyd for application state and i think this could be a dream team)
Hi, first off, love the conciseness of this library. Nicely done.
Wondering if you have recommendations for how to restrict that valid values for an observable. For instance, let's say I want to restrict an observable to just integers, or to two values, e.g. light
or dark
for my theme.
I'm guessing this is a common use case, and just wondered if there was an ergonomic way of doing it once for an observable so invalid values are rejected or at least reported.
Thanks!
I missed the blurb about that...
I noticed that the computationToken is wrapped as array [runComputed]
, i didn't understand the intent of this usage, just want to ask why. thx.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.