Package Exports
- rijs.reactive
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rijs.reactive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Ripple | Reactive
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.