rijs.reactive

0.0.6 • Public • Published

Ripple | Reactive

Coverage Status Build Status

Reacts to changes in data resources.

Traditionally in JS Frameworks, you will make a change, then run a different command to signal an update:

ripple('data').push(value)
ripple('data').emit('change')

This module makes the second line redundant. More philosophically, as a reactive design pattern, listeners (e.g. views updating) should update themselves as an epiphenomenon of data changing rather than an application developer directly instructing them too.

ripple('data').push(value)  // triggers ripple('data').emit('change')

Uses Object.observe in browsers that support it or polling in browsers that don't.

Dependents (1)

Package Sidebar

Install

npm i rijs.reactive

Weekly Downloads

4

Version

0.0.6

License

pemrouz.mit-license.org

Last publish

Collaborators

  • pemrouz