TreeModel new
childrenBlock: [ :number | Halt now. 1 to: number ];
hasChildrenBlock: [ :number | true ];
roots: (1 to: 10);
openWithSpec
and then:
unfold node 10
a debugger opens because of the Halt now
close the debugger
refold node 10
unfold node 10
the debugger is not reopened
This means that the #childrenBlock: is executed only once and then cached. In some scenarios, users will expect folding and then unfolding a node to refresh the node's children.
To reproduce, evaluate this
and then:
10
Halt now
10
10
This means that the
#childrenBlock:
is executed only once and then cached. In some scenarios, users will expect folding and then unfolding a node to refresh the node's children.