This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cat Tracker in multiple tabs or windows

Hello,

I wanted to show a colleague all the great features that the Cat Tracker has. I am working with Settings. The most important feature exists -- when I change a setting I get confirmation after the setting actually changes on the device. But I tried to get fancy and open up 2 tabs looking at the same device (Cat). When I change a setting and click Update in one Window, and then at the time the red circle disappears, showing that I have updated, in the other tab the discrepancy between the value displayed and the actual value causes its red circle to appear. Is there any way the logic could be enhanced so that the red circle and the value displayed in the second tab reflect what the shadow information is? So I guess there would be 2 things that make the circle appear and a new value appear: one is changing the value of a setting in a tab, and the other is an observed difference in the shadow information when we execute code in connectAndListenForStateChange.ts. Thanks.

Burt

Parents Reply Children
No Data
Related