# \#context

**URL:** https://discourse.nodered.org/tag/context/135.md

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

---

## [Saving in global context parses key, breaking on "." shown in JSON](https://discourse.nodered.org/t/saving-in-global-context-parses-key-breaking-on-shown-in-json/100815)

<div class="topic-metadata">

**Author:** [@knowledgeshark](https://discourse.nodered.org/u/knowledgeshark)\
**Replies:** 36\
**Last updated:** [23 April 2026 16:17 UTC](https://discourse.nodered.org/t/saving-in-global-context-parses-key-breaking-on-shown-in-json/100815 "2026-04-23T16:17:28Z")

</div>

So I finally started to use the "context" feature. I've been using a JSON-DB successfully for years. I used global.set(query, data) where data is JSON. This works. But when the "query" has a "." inside, the key is brok…

---

## [Persist dashboard state/context between restarts](https://discourse.nodered.org/t/persist-dashboard-state-context-between-restarts/99917)

<div class="topic-metadata">

**Author:** [@Semmu](https://discourse.nodered.org/u/Semmu)\
**Replies:** 12\
**Last updated:** [12 December 2025 09:44 UTC](https://discourse.nodered.org/t/persist-dashboard-state-context-between-restarts/99917 "2025-12-12T09:44:46Z")

</div>

Hey everyone, I just started using Dashboard v2 recently to create a simple and easy-to-use interface for my parents to control some IoT stuff around the house. It is working perfectly, previously I had a decent experie…

---

## [Subflow and subflow in a subflow and context](https://discourse.nodered.org/t/subflow-and-subflow-in-a-subflow-and-context/98993)

<div class="topic-metadata">

**Author:** [@rewegit](https://discourse.nodered.org/u/rewegit)\
**Replies:** 3\
**Last updated:** [9 September 2025 10:23 UTC](https://discourse.nodered.org/t/subflow-and-subflow-in-a-subflow-and-context/98993 "2025-09-09T10:23:24Z")

</div>

While learning DB2, I have come to appreciate the use of subflows. The only thing that gives me headaches is dealing with the context. According to Working with context : Node-RED, I can use, for example, var color = f…

---

## [Trigger State has delay in updating context](https://discourse.nodered.org/t/trigger-state-has-delay-in-updating-context/96194)

<div class="topic-metadata">

**Author:** [@sudave](https://discourse.nodered.org/u/sudave)\
**Replies:** 3\
**Last updated:** [5 April 2025 11:15 UTC](https://discourse.nodered.org/t/trigger-state-has-delay-in-updating-context/96194 "2025-04-05T11:15:51Z")

</div>

I have a physical light switch that shows its status with an LED and a bunch of window sensors. My Flow can be described like this: Turn on the LED (which means the switch) when at least one window is open Turn it off…

---

## [Context and chart example](https://discourse.nodered.org/t/context-and-chart-example/92737)

<div class="topic-metadata">

**Author:** [@gallionjason](https://discourse.nodered.org/u/gallionjason)\
**Replies:** 5\
**Last updated:** [28 October 2024 17:05 UTC](https://discourse.nodered.org/t/context-and-chart-example/92737 "2024-10-28T17:05:13Z")

</div>

Hello, would anyone have an example using Context output to a dashboard chart? I have data going into context successfully, but I'm having trouble getting data from Context and sending it to a chart in dashboard. The d…

---

## [Global variable with multiple nested objects](https://discourse.nodered.org/t/global-variable-with-multiple-nested-objects/89279)

<div class="topic-metadata">

**Author:** [@pbhanu368](https://discourse.nodered.org/u/pbhanu368)\
**Replies:** 14\
**Last updated:** [17 July 2024 16:45 UTC](https://discourse.nodered.org/t/global-variable-with-multiple-nested-objects/89279 "2024-07-17T16:45:31Z")

</div>

I've a query, while writing and reading the data to the global variable having multiple nested objects from different flows and nodes ...will it leads to any performance issue in node red ? my global variable will be li…

---

## [Visibility of context storage options](https://discourse.nodered.org/t/visibility-of-context-storage-options/88079)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 5\
**Last updated:** [18 May 2024 17:58 UTC](https://discourse.nodered.org/t/visibility-of-context-storage-options/88079 "2024-05-18T17:58:56Z")

</div>

A couple of suggestions/observations around context storage options... If you blindly follow the directions in the documentation, Node-red will error on startup. This is because the context storage section needs to be…
