# Update on Tea Trees

**URL:** <https://discourse.elm-lang.org/t/update-on-tea-trees/1647>\
**Category:** Show and Tell\
**Created:** [August 16, 2018, 4:11pm UTC](https://discourse.elm-lang.org/t/update-on-tea-trees/1647 "2018-08-16T16:11:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [August 16, 2018, 4:11pm UTC](https://discourse.elm-lang.org/t/update-on-tea-trees/1647/1 "2018-08-16T16:11:42Z")

</div>

Hi,

![radial](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/elm_lang/original/2X/a/a04d6664bbf239aecd3ca3f21af7b8c782b32c12.png)

I have implemented an example on top of my tea-tree package, that is now at a level that is sufficient to demonstrate its purpose. Specifically that in Elm it is possible to have stale events (constructed from an older version of the `Model` before the current one) and this tree implementation lets you reference nodes in the tree by `Path`s which do not capture the stale state of the tree.

[https://github.com/the-sett/tea-tree](https://github.com/the-sett/tea-tree)

To run the example:

```
cd examples
elm-reactor
# go to http://localhost:8000/index.html

```

Tree zippers cannot be used in events because they capture the state of the tree, and when there are stale events they overwrite the updates made with other zippers. I refer to the original discussion if you want to refresh yourself about it:

[https://discourse.elm-lang.org/t/a-tree-for-tea-tea-tree/1427](https://discourse.elm-lang.org/t/a-tree-for-tea-tea-tree/1427)

Also see this Ellie for a demonstration of how stale events can occur:

[https://ellie-app.com/yVC9wPk33xa1](https://ellie-app.com/yVC9wPk33xa1)

I am aiming to make this sunburst diagram behave like the one below. This will also be used to test how efficient the `map` operation is over the tree when it is used to implement an animation of the whole tree.

[https://bl.ocks.org/mbostock/4348373](https://bl.ocks.org/mbostock/4348373)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [August 26, 2018, 4:19pm UTC](https://discourse.elm-lang.org/t/update-on-tea-trees/1647/2 "2018-08-26T16:19:07Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
