#702 Auto update TemperatureView #720
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
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