3 ms·
Thanks, I was more wondering whether I can have something like : cursor.refine('foo').onChange({'child':{}}); in one place and then in some other, code that
by polskibus 12y ago
Thanks, I was more wondering whether I can have something like :
cursor.refine('foo').onChange({'child':{}});
in one place and then in some other, code that would dwelve inside that child recursively (and append the "add child" action to that node as well)
My goal is to have a json editor with json as the only model in the application and have react/cursor automatically render the tree, and allow its modification (removing and adding nodes).
Such functionality would require cursor to "dive" inside a json node without knowing its name - I'm not sure whether the 'push' op you are mentioning would be required to achieve this.