#702 Auto update TemperatureView #720
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!720
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#702-auto-update-temperature"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added auto refresh to TemperatureView. Every 15 seconds a counter increases which causes the temperature card to check for new data.


A side note, the time shown on screenshots is when the sensor recorded the reading, not when the card refreshed.
Unit test added for useTemperature that verifies the hook refetches data when the refresh counter changes.
Review on #720
Whats done
Tested on macOS using Chrome
Inspected following files
TemperaturView.js
useTemperature.js
useTemperature.test.js
+ Follows standard
What needs to be done
Conclusion