# Help needed: Dashboard 2 & Vue -\> reset values on refresh

**URL:** <https://discourse.nodered.org/t/help-needed-dashboard-2-vue-reset-values-on-refresh/88393>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, dashboard-2\
**Created:** [30 May 2024 23:59 UTC](https://discourse.nodered.org/t/help-needed-dashboard-2-vue-reset-values-on-refresh/88393 "2024-05-30T23:59:07Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 June 2024 09:03 UTC](https://discourse.nodered.org/t/help-needed-dashboard-2-vue-reset-values-on-refresh/88393/10 "2024-06-01T09:03:07Z")

</div>

> [@xx\_Nexus\_xx](#):
>
> I'm now thinking this is a normal VUE behavior

It isn't to do with VUE it is the way the dashboard interacts with templates.

When the browser is refreshed it sends back to you the last message that was sent to the template or from the template. In your case this is the last message that you sent, as you can see by comparing the browser console output with the debug log in node-red. This message does not have what your watch msg function is expecting which is why it resets everything.

To solve your problem, you have to make sure that any message you send to the template or send from the template has all the information you need to display it correctly. I do this by including a property which I call `_data` in any messages I send from the template. Then if I receive a message containing `_data` I know that it is caused by a refresh and I can use the contents of \_data to set up the widgets.

---

_[View the full topic](https://discourse.nodered.org/t/help-needed-dashboard-2-vue-reset-values-on-refresh/88393)._
