Profile memory
Comment cleanup
This commit is contained in:
fraxle
2026-05-18 23:02:41 +01:00
parent dded468bec
commit 85c415d1f5
16 changed files with 504 additions and 581 deletions
+9 -9
View File
@@ -1,5 +1,5 @@
// ════════════════════════════════════════════════════════════════════════
// useForecast fetches the weather forecast and air quality for the
// ------------------------------------------------------------------------
// useForecast - fetches the weather forecast and air quality for the
// given location and keeps them fresh.
//
// Responsibilities:
@@ -11,15 +11,15 @@
// stale.
//
// Inputs:
// location { lat, lon, name, country }
// location - { lat, lon, name, country }
//
// Outputs:
// forecast raw /v1/forecast response, or null
// airQuality raw /v1/air-quality response, or null
// loading true while the forecast fetch is in flight
// error fetch error message, or null
// now Date that ticks every 5 minutes (drives the "current row")
// ════════════════════════════════════════════════════════════════════════
// forecast - raw /v1/forecast response, or null
// airQuality - raw /v1/air-quality response, or null
// loading - true while the forecast fetch is in flight
// error - fetch error message, or null
// now - Date that ticks every 5 minutes (drives the "current row")
// ------------------------------------------------------------------------
import { useState, useEffect } from '../../vendor/preact-hooks.js';