0.1.1 • Published 6 years ago

delta-watch-react v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Delta Watch

Object watching utility for JavaScript

Example

import DeltaWatch from "delta-watch";

// Create watchable object with inital values
let watchable = DeltaWatch.Watchable({
    value: "Initial"
});

DeltaWatch.Watch(watchable.Watcher.value, (value: string) => {
    console.log("new value", value);
});

watchable.Mutator.value = "Changed"; // cb gets call with "Changed"

// May also access current value
console.log(watchable.Accessor);
// logs "Changed"

Starting the example app

cd packages/examples
npm install

npm run build
npm start
0.1.1

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago