Document level hive mind interface for Attila - Resistance is futile.
npm install borg-collective
const myChangeHandler = function( stateByPath, change )
{
console.log( Object.keys( stateByPath ) )
// prints [ "user.name", "user.age" ] console.log( change.path, change.value)
// prints "user.name henk"
}
collective.onChange({
path: [ 'user.name', 'user.age' ],
handler: myChangeHandler
})
``