Add some context to the state that the treeview can pass to children.