# Problem with custom UI node and replaying data

**URL:** https://discourse.nodered.org/t/problem-with-custom-ui-node-and-replaying-data/49478
**Category:** Dashboard
**Tags:** node-red-dashboard
**Created:** [8 August 2021 10:31 UTC](https://discourse.nodered.org/t/problem-with-custom-ui-node-and-replaying-data/49478 "2021-08-08T10:31:52Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [9 August 2021 13:38 UTC](https://discourse.nodered.org/t/problem-with-custom-ui-node-and-replaying-data/49478/7 "2021-08-09T13:38:23Z")

</div>

> [@Christian-Me](#):
>
> How can I let the client ask for the `updatedValues.msg` after a tab change instead getting only the last message ( `newPoint` ).

As you can see [here](https://discourse.nodered.org/t/msg-replayed-in-ui-node-after-a-tab-switch/25032/5), we used a trick to see whether a message is being replayed on the client side (e.g. by a tab switch): add a field to the input msg (i.e. on the client side copy of the input msg). When that field is already available when the watch is triggered, then you know that it is a client-side replayed msg (which has previously been handled already by this watch...). In that case you could get your complete dataset from the server.  
But of course it is only a trick...

---

_[View the full topic](https://discourse.nodered.org/t/problem-with-custom-ui-node-and-replaying-data/49478)._
