fix(offline): IndexedDB fallback when API returns empty on /recipes & /season/[month]
These two pages only fell back to IndexedDB when navigator.onLine was false. On mobile the device often reports online while the origin is flaky (502 / slow cellular / cached shell with stale connectivity), so the API call returned nothing and the pages rendered 0 recipes. Now both also fall back to IndexedDB when the API attempt yields an empty list, matching the pattern already used by [name]/+page.ts and icon/[icon]/+page.ts.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"version": "1.67.4",
|
||||
"version": "1.67.5",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user