Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(alarms): fix data mapping from input property values #3028

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

jmbuss
Copy link
Contributor

@jmbuss jmbuss commented Oct 3, 2024

Overview

Bugfix for useAlarms AlarmData mapping. The internal alarms data in useInputPropertyTimeSeriesData is only being modified when the property changes. This ensures we don't call time series data every time any irrelevant property changes in the alarms model, but it also means the internal model may not be up to date. To fix this, we only call useTimeSeriesData with the internal model, so that it is not overly reactive, but map the output with the up to date models.

Legal

This project is available under the Apache 2.0 License.

@jmbuss jmbuss marked this pull request as ready for review October 3, 2024 16:19
@jmbuss jmbuss merged commit ebd1ea8 into rc Oct 3, 2024
20 checks passed
@jmbuss jmbuss deleted the fix/alarms-reactivity branch October 3, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants