Replies: 1 comment
-
Thanks for bringing this up. When transforming a tree, the nodes of the tree are cloned and you will indeed lose any added properties. I think we could either:
I think I prefer the first solution. Anyone interested in implementing this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an expression tree, in which some nodes have been given extra properties (such as
node.depth = 1
ornode.priority = 4
). However, it seems that putting that expression tree through thetransform()
function removes those props entirely:I even tried embedding the data within the
node.comment
property, but that gets erased too. I did check the value ofnode
in theelse return
section and it did contain my addeddepth
andpriority
props, so something in the transform callback is deleting them.Beta Was this translation helpful? Give feedback.
All reactions