1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Remove Model Instances from the Tree

    reactReact
    ^16.0.0
    mobxMobX
    ^3.0.0

    In this lesson we will dive a bit more into the tree semantics of MST.

    In this lesson you will learn:

    • Actions can only modify their own subtree
    • The use of getParent to find the parent of a model instance
    • Using destroy to remove an instance entirely from the tree