Questions tagged [calmm]

Questions about the CalmmJS architecture & core collection of libraries - principally React, Karet, Kefir, Ramda & partial.lenses

Questions about the CalmmJS architecture & core collection of libraries - principally React, Karet, Kefir, Ramda & partial.lenses.

It is a collection of libraries within the Functional Reactive paradigm focused on functional purity along the lines of fantasy-land, with observables taken from Kefir (optionally support for Bacon exists), and the ability to lift functions to observables extremely easily.

CalmmJS replaces the ordinary React library, allowing for lifted components which we can use to directly embed Observables in the VDOM.

It has an extensive range of supporting libraries, including libraries for XHR, reading files, managing history state, and other common tasks.

See documentation here

See & experiment with examples written by the founder here

3 questions
13
votes
3 answers

What's the difference between a lens and a partial lens?

A "lens" and a "partial lens" seem rather similar in name and in concept. How do they differ? In what circumstances do I need to use one or the other? Tagging Scala and Haskell, but I'd welcome explanations related to any functional language that…
Chris Martin
  • 30,334
  • 10
  • 78
  • 137
2
votes
1 answer

How should I trigger an XHR on component MouseClick using CalmmJS and React?

What I want is to trigger an XHR.perform onMouseClick, using CalmmJS and React - I'm trying the following code, unnecessary parts redacted: const getResults = someArg => XHR.perform({ timeout: 60 * 1000, responseType: 'json', method:…
JimmyM
  • 360
  • 3
  • 20
2
votes
1 answer

Calmm-way of doing async requests with interval?

What's the most elegant way (in Calmm stack, Kefir, Karet Utils etc.) of doing repeated (infinite) async jobs with interval? I want to get some json every 2000ms. Example 1 (2000ms interval): Fetch json (get takes 100ms) Handle json Wait the…