# When switching to UI, the entire component hierarchy is expanded

**URL:** <https://community.appfarm.io/t/when-switching-to-ui-the-entire-component-hierarchy-is-expanded/1068>\
**Category:** Feature requests\
**Tags:** ui\
**Created:** [February 22, 2024, 11:58am UTC](https://community.appfarm.io/t/when-switching-to-ui-the-entire-component-hierarchy-is-expanded/1068 "2024-02-22T11:58:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenneth.solberg](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kenneth.solberg/32/1034_2.png) [@kenneth.solberg](https://community.appfarm.io/u/kenneth.solberg)\
**Post date:** [February 22, 2024, 11:58am UTC](https://community.appfarm.io/t/when-switching-to-ui-the-entire-component-hierarchy-is-expanded/1068/1 "2024-02-22T11:58:32Z")

</div>

Given this view and components:

view  
–component a (selected)  
----component b  
–component c  
----component d

I collapse component c, so that component d is not visible.

If I switch to Data or Actions then back to UI, component c is expanded and d is visible.

A desired behaviour would be that it remember the expand/collapse state.

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [February 22, 2024, 12:06pm UTC](https://community.appfarm.io/t/when-switching-to-ui-the-entire-component-hierarchy-is-expanded/1068/2 "2024-02-22T12:06:38Z")

</div>

Hi Kenneth and thank you for the suggestion.  
I have made a ticket with your request.

//Erik
