We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When setting a parent path, cursors of child paths are notified of 'update' events, even if the values at the child paths didn't change.
'update'
Repro steps:
var assert = require('assert') var Baobab = require('baobab') var tree = new Baobab({ outer: { inner: 'value' } }) tree.select('outer', 'inner').on('update', e => { // will fail assert.notEqual(e.data.previousData, e.data.currentData) }) tree.set('outer', { inner: tree.get('outer', 'inner') })
Expected: the 'update' handler does not fire, since the value at path (outer, inner) did not change. Actual: an AssertionError is thrown
(outer, inner)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When setting a parent path, cursors of child paths are notified of
'update'
events, even if the values at the child paths didn't change.Repro steps:
Expected: the
'update'
handler does not fire, since the value at path(outer, inner)
did not change.Actual: an AssertionError is thrown
The text was updated successfully, but these errors were encountered: