Questions tagged [mostjs]

5 questions
3
votes
0 answers

Circular dependencies with observables

I have a number of streams that have circular dependencies. import input from './input' const streamA = input.thru( someUsageOf_streamC ); const streamB = input.thru( someOtherUsageOf_streamC ); const streamC = most.merge( …
Sethi
  • 1,378
  • 8
  • 14
2
votes
1 answer

Typescript typings in Cyclejs for Mostjs stream interoperability?

I have a small component I'd like to provide property typings for similar to this example I'm using cyclejs with the mostjs stream library. This works: import { Sources } from '@cycle/run'; import { setup } from '@cycle/most-run'; import { div,…
tgk
  • 3,857
  • 2
  • 27
  • 42
1
vote
1 answer

How do I use requestAnimationFrame with Motorcycle and mostjs

I am using Motorcycle to create a small application. I need to call a function on every requestAnimationFrame. Since it is a side effect, I know it must be done in an "effectful" component. However, mostjs doesn’t provide a source, such as it…
Frederik Krautwald
  • 1,782
  • 23
  • 32
1
vote
2 answers

mostjs - creating streams from custom sources

I am curious about current best practices for creating streams from sources that may not conform to an existing stream creation method (https://github.com/cujojs/most/blob/master/docs/api.md) Example using Firebase's ref.on('child_added',…
manglass
  • 11
  • 1
0
votes
2 answers

Dynamic rerouting and circular dependency with Mostjs

It is evident that xstream, with the two methods addListener and removeListener, is able to reroute streams (change their sources and sinks) dynamically. I see no equivalent with mostjs. Does most only let you lay out the routing of the streams…
Joseph Johnston
  • 533
  • 1
  • 3
  • 14