# \[NEW FEATURE\] node-red-contrib-simple-gate (version 0.2.0)

**URL:** <https://discourse.nodered.org/t/new-feature-node-red-contrib-simple-gate-version-0-2-0/5730>\
**Category:** Share Your Nodes\
**Created:** [12 December 2018 22:04 UTC](https://discourse.nodered.org/t/new-feature-node-red-contrib-simple-gate-version-0-2-0/5730 "2018-12-12T22:04:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [12 December 2018 22:04 UTC](https://discourse.nodered.org/t/new-feature-node-red-contrib-simple-gate-version-0-2-0/5730/1 "2018-12-12T22:04:39Z")

</div>

This update takes advantage of the persistent context feature introduced in Node-RED version 0.19.

Previously, the node would enter the `Default State` on startup, either when first deployed in the editor, re-deployed as part of a modified flow or entire workspace, or when Node-RED is restarted by the user or by a system service. Now, however, the user can select the `Restore from saved state` option (checkbox) in the edit dialog. Then, if a persistent form of context storage has been enabled in the Node-RED `settings.js` file, the node will attempt to enter the state last saved in the node context. It will use the `Default State` only if no saved state is available.

The new version is intended to be backward compatible with earlier ones. Please report any [issues](https://github.com/drmibell/node-red-contrib-simple-gate/issues).

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [12 December 2018 22:12 UTC](https://discourse.nodered.org/t/new-feature-node-red-contrib-simple-gate-version-0-2-0/5730/2 "2018-12-12T22:12:02Z")

</div>

Nice work Michael, and thanks for taking the time to add this enhancement.

Paul
