# Stop Collapsing the Context Viewer when refreshing?

**URL:** https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442
**Category:** Feature Requests
**Created:** [7 January 2025 23:03 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442 "2025-01-07T23:03:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [7 January 2025 23:03 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/1 "2025-01-07T23:03:45Z")

</div>

Guys,

NR 4.05 - although this is an ongoing behaviour - is there anyway we could get an option to stop the Context Variable view from Collapsing on a refresh - and potentially have an option to auto refresh as well

I have a lot of data in Global Context (trying to break down flows into functional elements as much as possible) - and often will have Objects within Objects within Arrays etc - when performing a refresh it is necessary to go back and drill all the way down to open again

It would be great if there was some form of autorefresh button to use when debugging and more importantly to stop the pain collapsing when a manual refresh is performed ?

I see this has been asked for a number of times before and each time has been auto closed due to expiration - is there a fundamental reason why this can not be done ?

regards

Craig

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [7 January 2025 23:23 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/2 "2025-01-07T23:23:18Z")

</div>

The tree state being lost on refresh is definitely not ideal & an annoyance for sure. I`d certainly not be opposed to an improvement here.

In theory, this is certainly doable but how tricky it is depends on the underlying capabilities of the widget used to render the tree.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [8 January 2025 01:40 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/3 "2025-01-08T01:40:00Z")

</div>

Thanks for the answer Steve.

I will leave it in your camp to provide feedback as appropriate as to the difficulty of this (depending on the flexibility of the underlying libraries/widget)

regards

Craig

---

<div class="post-metadata">

### Author: ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)
#### Post date: [8 January 2025 04:31 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/4 "2025-01-08T04:31:38Z")

</div>

Is it also possible to put few of the objects of interest in a 'watch window' instead of looking at entire context panel?  
Currently i achieve this by putting a debug node and enabling status. But it has its limitations

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [8 January 2025 11:08 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/5 "2025-01-08T11:08:43Z")

</div>

> <https://github.com/node-red/node-red/issues/5008>
>
> Ref: https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-ref…reshing/94442
> 
> 
> \> is there anyway we could get an option to stop the Context Variable view from Collapsing on a refresh - and potentially have an option to auto refresh as well
> \> 
> \> I have a lot of data in Global Context (trying to break down flows into functional elements as much as possible) - and often will have Objects within Objects within Arrays etc - when performing a refresh it is necessary to go back and drill all the way down to open again
> \> 
> \> It would be great if there was some form of autorefresh button to use when debugging and more importantly to stop the pain collapsing when a manual refresh is performed ?
> \> 
> \> I see this has been asked for a number of times before and each time has been auto closed due to expiration - is there a fundamental reason why this can not be done ?

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [9 January 2025 00:53 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/6 "2025-01-09T00:53:28Z")

</div>

Excellent thank you

regards

Craig

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [10 March 2025 00:54 UTC](https://discourse.nodered.org/t/stop-collapsing-the-context-viewer-when-refreshing/94442/7 "2025-03-10T00:54:30Z")

</div>

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