Hello,
I face a "Lost connection" issue in the dashboard when putting the dashboard tab in background task (hidden). The issue is easily reproducible in Firefox (much more difficult to reproduce in Chrome but still).
The easy way to reproduce the issue is to take an inject node (sending timestamp every 100ms) and link it to a ui_template node (with default template code). Here is the flow:
[
{
"id": "ead64dd9.a36088",
"type": "inject",
"z": "4aed941a.4518b4",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "0.1",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 270,
"y": 220,
"wires": [
[
"cfde5b78.259018"
]
]
},
{
"id": "cfde5b78.259018",
"type": "ui_template",
"z": "4aed941a.4518b4",
"group": "d610e123.12c21",
"name": "",
"order": 0,
"width": "12",
"height": "6",
"format": "<div ng-bind-html=\"msg.payload\"></div>",
"storeOutMessages": true,
"fwdInMessages": true,
"templateScope": "local",
"x": 520,
"y": 220,
"wires": [
[]
]
},
{
"id": "d610e123.12c21",
"type": "ui_group",
"z": "",
"name": "Design",
"tab": "5fd58689.008b98",
"disp": true,
"width": "12",
"collapse": true
},
{
"id": "5fd58689.008b98",
"type": "ui_tab",
"z": "",
"name": "Acquisition",
"icon": "memory",
"order": 2,
"disabled": false,
"hidden": false
}
]
Then open the dashboard in a new Firefox tab on the same machine, and put it in background. After a 20-30s bring the dashboard tab back in the front => the "connection lost" popup appears and the dashboard is completely refreshed !
The following logs appears in firefox dev console:
Rendered http://127.0.0.1:1880/ui/css/app.min.less successfully. app.min.js:514:12823
CSS for http://127.0.0.1:1880/ui/css/app.min.less generated in 298ms app.min.js:514:12823
Less has finished. CSS generated in 300ms app.min.js:514:12823
My test environment is :
- Windows_NT 10.0.16299 x64 LE
- Node.js version: v10.15.3
- Node-RED version: v0.20.5
- Dashboard version 2.14.0