You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Data is being pushed upon every Live tick to iot-time-series-connector when in Live mode. The prevDataCache for hasRequestedInformationChanged() is sometimes undefined, which causes hasRequestedInformationChanged to always return true.
To Reproduce
Steps to reproduce the behavior:
Have a working testing-ground with working assetIds
Produce a time series chart with duration '1m' (preferably line chart so that the data is aggregated compared to scatter)
Have some console logs in hasRequestedInformationChanged that details prevDataStreamStore
Run the App Kit locally and inspect the page
See that prevDataStreamStore is occasionally undefined in console
Expected behavior
Only new incoming data should be pushed to iot-time-series-connector in Live mode. hasRequestedInformationChanged should only return true if there's new incoming data that needs to be rendered, and prevDataCache should only be undefined upon initialization of DataCache.
Screenshots
example of prevDataStreamStore being undefined while currDataStreamStore is defined after letting App Kit run locally for a while.
Desktop (please complete the following information):
OS: macOS Monterey
Browser Firefox
Version 91.10.0esr
Additional context
The frequency of prevDataCache being undefined depends on the duration of the viewport. The smaller the duration (e.g. 1 minute), the more often prevDataCache is undefined (about every other tick).
The text was updated successfully, but these errors were encountered:
Describe the bug
Data is being pushed upon every Live tick to
iot-time-series-connector
when in Live mode. TheprevDataCache
forhasRequestedInformationChanged()
is sometimes undefined, which causeshasRequestedInformationChanged
to always return true.To Reproduce
Steps to reproduce the behavior:
hasRequestedInformationChanged
that detailsprevDataStreamStore
prevDataStreamStore
is occasionally undefined in consoleExpected behavior
Only new incoming data should be pushed to
iot-time-series-connector
in Live mode.hasRequestedInformationChanged
should only return true if there's new incoming data that needs to be rendered, andprevDataCache
should only be undefined upon initialization ofDataCache
.Screenshots
example of
prevDataStreamStore
being undefined whilecurrDataStreamStore
is defined after letting App Kit run locally for a while.Desktop (please complete the following information):
Additional context
The frequency of
prevDataCache
being undefined depends on the duration of the viewport. The smaller the duration (e.g. 1 minute), the more oftenprevDataCache
is undefined (about every other tick).The text was updated successfully, but these errors were encountered: