Previous wsArg approach still suffered from useCallback memoisation interacting with React batching — loadAll could fire with the render- before-last week start. Switch to weekStartRef (written before every loadAll call and on every render) so loadAll always reads the live value regardless of when the memoised function was created. Also removes unused putWarningThresholds import (added externally). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| icons | ||
| index.html | ||
| manifest.webmanifest | ||
| registerSW.js | ||
| sw.js | ||
| workbox-9c191d2f.js | ||