Assuming the following code (current state can be viewed here):  function scrollTopFromEvent(evt) {     return $(evt.target).scrollTop(); }  function scrollDirection(evt) {     return -evt.originalEvent.wheelDelta / 120 || evt.originalEvent.detail /...
I'd like to understand the original meaning of functional reactive programming in Haskell and how it differs from the actual application of FRP in Javascript. Unfortunately, I have only a superficial understanding of Haskell and have to stick wit...
I have been experimenting with RxJS for two weeks now, and although I love it in principle I just cannot seem to find and implement the correct pattern for managing state. All articles and questions appear to agree:   Subject should be avoided where...
I am studying functional reactive programming and most of all the examples I found is all about streams of events for example Bacon.js. I'm not sure I get these examples. I thought FRP is all about changing one variable and continuous change othe...
I'm experimenting with RxJS (with the JQuery extension) and I'm trying to solve the following use case:   Given that I have two buttons (A & B) I'd like to print a message if a certain "secret combination" is clicked within a...
I have an observable that is pulling events off of a server, filtering events for the application type, then subscribing and dispatching the event to one or more handlers to handle.  The handlers then go off and do some async update to the db, and I...
When grouping output with the combination of .groupBy and .concatAll, some expected output is not generated.  Sample code:  var Rx = require('rx');  var source = Rx.Observable.from(['a1', 'a2', 'b1', 'b2', '...
I am working on an application being built with Bacon.js, and using React for rendering (though that doesn't seem to be germane to the question. I am building a page that is an infinitely scrolling list of data. You can filter or sort the results...
In this example (RandomGifPair), how is the update corresponding to NewGif actually wired to execute after the parent component fires RandomGif.update act model.left? It seems like the RandomGif.update NewGif maybeUrl needs to be manually fired somew...
What's the idiomatic way to create a property in Kefir that changes in response to multiple event types?  In my project, I started off using rxjs for a FRP-style application. In this application, I wanted to subscribe to state that changed in res...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.