# Dashboard 2.0 chart node page reconnect issue

**URL:** <https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [16 September 2024 11:43 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017 "2024-09-16T11:43:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 September 2024 11:43 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/1 "2024-09-16T11:43:41Z")

</div>

Dashboard when returning to tab after some time, the page reconnects and this is the view, notice long time gap. Data interval 10seconds

 ![Screenshot_20240916-121216](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/69d4ac214afa3abdfc554ad1ccff7f0001ddbb0f.png)

Restoring the incoming data saved to context, fills in missing data, or refreshing the tab.

 ![Screenshot_20240916-121229](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d4646cac5d9569714b183529047deed2b570d64.png)

@joepavitt what is ocurring here, seems after some time when tab is not in view the connection gets dropped, when it reconnects it does not update the data after the connection reconnects.

I think the chart node needs to force refresh browser tab when the page reconnects.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [16 September 2024 11:59 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/2 "2024-09-16T11:59:29Z")

</div>

> [@E1cid](#):
>
> I think the chart node needs to force refresh browser tab when the page reconnects.

I think you're correct. As you've described is exactly what's happening. We're not running an `on-load` event when the socket connection is re-established. Can you open an issue please?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 September 2024 12:08 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/3 "2024-09-16T12:08:44Z")

</div>

Opened [Chart node missing data after page reconnect · Issue #1297 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/1297)

---

<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:** [16 September 2024 14:29 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/4 "2024-09-16T14:29:19Z")

</div>

> [@joepavitt](#):
>
> you've described is exactly what's happening. We're not running an `on-load` event when the socket connection is re-established.

Is that specific to the chart node or does explain similar problems reported with other nodes?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 September 2024 14:33 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/5 "2024-09-16T14:33:39Z")

</div>

I wonder why you are asking this? As you have noted that this issue is similar to the text node issue you raised, and have already note it on the chart node issue. If you need an answer i suggest you test each dashboard node.

---

<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:** [16 September 2024 15:42 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/6 "2024-09-16T15:42:06Z")

</div>

I need to know what I should test once the fix is committed. There is no point testing nodes unless there is likely that it will have fixed them.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 September 2024 15:44 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/7 "2024-09-16T15:44:21Z")

</div>

I am unlikely to know what nodes to test, maybe you should of directed your reply to joe, rather than me.

---

<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:** [16 September 2024 19:51 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/8 "2024-09-16T19:51:34Z")

</div>

> [@E1cid](#):
>
> maybe you should of directed your reply to joe,

I thought I selected Joe's comment and hit Quote. I thought that meant that the question was directed at Joe.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 September 2024 19:58 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/9 "2024-09-16T19:58:27Z")

</div>

`You know what thought did? He only thought he did`

[edit] looking at the topic posts it seems you did , strange as I definitely received a notification that you replied to me.

---

<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:** [17 September 2024 06:57 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/10 "2024-09-17T06:57:54Z")

</div>

I wonder whether I did something silly like clicking Reply on your post, then quoting from Joe's.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 September 2024 07:12 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/11 "2024-09-17T07:12:33Z")

</div>

No, i think it is the fact that I started the topic, so i think the forum notifies me when anyone responds, So I think you did respond to Joe and the forum sent me a email to, which made me think you where asking me the question. Sorry for any confusion.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [18 September 2024 15:37 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/12 "2024-09-18T15:37:30Z")

</div>

> [@Colin](#):
>
> does explain similar problems reported with other nodes?

I suspect it's Dashboard-wide

---

<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:** [19 September 2024 07:41 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/13 "2024-09-19T07:41:19Z")

</div>

> [@joepavitt](#):
>
> I suspect it's Dashboard-wide

That is good, hopefully it will clear up a number of issues.

Is there any way that [[Regression] [PWA?] Widgets not receiving messages after sleep on Android · Issue #1251 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/1251) could be related to this?

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [20 September 2024 05:48 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/14 "2024-09-20T05:48:47Z")

</div>

No, I think that is a separate issue

---

<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:** [10 October 2024 15:09 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/15 "2024-10-10T15:09:08Z")

</div>

Nice to see this bug squashed via [Missing data after reconnect by Steve-Mcl · Pull Request #1343 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/pull/1343) @Steve-Mcl 👍

---

<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:** [24 October 2024 15:09 UTC](https://discourse.nodered.org/t/dashboard-2-0-chart-node-page-reconnect-issue/91017/16 "2024-10-24T15:09:44Z")

</div>

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