# Is there a way to reload functionGlobalContext items without restarting NR?

**URL:** https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205
**Category:** General
**Created:** [10 August 2019 20:48 UTC](https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205 "2019-08-10T20:48:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thatcadguy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thatcadguy/32/5273_2.png) [@thatcadguy](https://discourse.nodered.org/u/thatcadguy)
#### Post date: [10 August 2019 20:48 UTC](https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205/1 "2019-08-10T20:48:14Z")

</div>

See subject. Thanks in advance.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [10 August 2019 20:51 UTC](https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205/2 "2019-08-10T20:51:53Z")

</div>

See subject. need more of an explanation

---

<div class="post-metadata">

### Author: ![thatcadguy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thatcadguy/32/5273_2.png) [@thatcadguy](https://discourse.nodered.org/u/thatcadguy)
#### Post date: [10 August 2019 21:08 UTC](https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205/3 "2019-08-10T21:08:08Z")

</div>

I am actively working on modules that are loaded into the global context. It's cumbersome to restart NR on my device because of how I have it set up (and I can't change it), so I'm wondering if there's a way to force a reload of settings.js, or just functionGlobalContext items.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [10 August 2019 21:14 UTC](https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205/4 "2019-08-10T21:14:07Z")

</div>

Are these modules within NR or they outside NR trying to change the data that a running NR uses??

Why not write them to a file and have a watch node in NR that when it sees the file has changed, reads it and store it in the proper place in NR's globals?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 August 2019 21:26 UTC](https://discourse.nodered.org/t/is-there-a-way-to-reload-functionglobalcontext-items-without-restarting-nr/14205/5 "2019-08-10T21:26:13Z")

</div>

To answer the question directly: no.
