Bingxi Zhao (Frank)
afade979b1
fix(web): open a deep book URL on the book, not on the library
...
Opening a book's URL directly — a bookmark, a new tab, a refresh — drew the
library first: the empty list one level above the book, with "Loading…" inside
it, and then a jump to the reader once the fetch landed. From the reader's side
that reads as a bad route or a missing book, on the URL they had just asked for
(#1440 ).
The route already knows the answer. `view` started at `list` and only became
`reader` after `loadBookDetail` returned, so one piece of state was answering
two questions: which surface is this, and is its data here yet. A book id in
the path settles the first before any request is made, so the initial view is
now derived from it and `opening` renders the book's own shell — sidebar and
all — while the data is in flight.
That makes a failed load worse than it was, so it is handled here too: it used
to leave the reader on a loaded library, and would now leave them in a shell
that never fills. A load that fails says why and returns them to the library,
URL included.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-09-14 02:06:16 +08:00
..
2026-09-11 04:39:34 +08:00
2026-09-01 15:55:40 +08:00
2026-09-08 00:22:08 +08:00
2026-09-06 13:46:29 +08:00
2026-09-01 21:28:15 +08:00
2026-09-02 04:09:11 +08:00
2026-09-14 01:43:18 +08:00
2026-09-06 13:46:29 +08:00
2026-09-08 00:46:09 +08:00
2026-09-06 23:04:24 +08:00
2026-09-06 13:46:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 22:15:33 -07:00
2026-09-02 04:09:11 +08:00
2026-09-06 13:46:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-03 01:38:54 +08:00
2026-09-02 04:09:11 +08:00
2026-09-14 02:06:16 +08:00
2026-09-01 22:24:29 +08:00
2026-08-27 22:03:09 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-10 23:41:36 +08:00
2026-09-02 04:09:11 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 01:38:54 +08:00
2026-09-11 00:07:30 +08:00
2026-09-01 22:24:29 +08:00
2026-09-01 21:28:15 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 01:38:54 +08:00
2026-09-14 01:43:40 +08:00
2026-09-01 22:24:29 +08:00
2026-09-08 00:22:08 +08:00
2026-09-02 04:09:11 +08:00
2026-09-07 10:20:03 +00:00
2026-09-06 13:46:29 +08:00
2026-09-08 00:26:00 +08:00
2026-09-03 01:38:54 +08:00
2026-09-01 22:24:29 +08:00
2026-09-04 06:32:36 -07:00
2026-09-04 06:32:36 -07:00
2026-09-01 20:16:46 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 22:24:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 22:24:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-14 01:28:46 +08:00
2026-09-01 18:55:55 +08:00
2026-09-01 22:24:29 +08:00
2026-09-10 23:44:43 +08:00
2026-09-02 04:09:11 +08:00
2026-09-11 04:39:34 +08:00
2026-09-11 04:39:34 +08:00
2026-09-02 04:09:11 +08:00
2026-09-07 07:55:08 +00:00
2026-08-31 01:13:07 +08:00
2026-09-01 22:24:29 +08:00
2026-09-07 01:04:08 +08:00
2026-09-10 22:51:27 +08:00
2026-09-03 15:56:55 +08:00
2026-09-01 22:24:29 +08:00
2026-09-01 22:24:29 +08:00
2026-09-07 01:04:08 +08:00
2026-09-02 04:09:11 +08:00
2026-08-29 22:29:53 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-08-27 23:17:17 +08:00
2026-08-30 13:19:42 +08:00
2026-09-10 23:41:30 +08:00
2026-09-06 13:46:29 +08:00
2026-08-28 14:58:43 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 15:29:55 +08:00
2026-09-06 13:46:29 +08:00
2026-08-27 23:17:17 +08:00
2026-09-01 22:24:29 +08:00
2026-09-01 22:24:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 22:24:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 20:16:46 +08:00
2026-09-01 20:16:46 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 20:16:46 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 20:16:46 +08:00
2026-09-01 22:24:29 +08:00
2026-09-03 01:38:54 +08:00
2026-09-01 20:16:46 +08:00
2026-09-10 23:41:36 +08:00
2026-08-31 19:51:48 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-03 15:29:22 +08:00
2026-08-27 16:16:54 +08:00
2026-08-31 19:34:01 +08:00
2026-09-03 01:38:54 +08:00
2026-09-01 21:28:15 +08:00
2026-08-30 13:19:42 +08:00
2026-08-31 08:44:08 -07:00
2026-08-28 14:58:48 +08:00
2026-08-28 14:58:48 +08:00
2026-08-31 18:40:45 +08:00
2026-09-03 15:20:13 +08:00
2026-08-28 14:58:48 +08:00
2026-08-31 19:19:38 +08:00
2026-09-08 00:39:12 +08:00
2026-08-31 19:34:01 +08:00
2026-09-14 01:28:54 +08:00
2026-08-30 13:19:42 +08:00
2026-08-30 16:01:40 +08:00
2026-09-06 13:46:29 +08:00
2026-08-28 00:55:19 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 22:24:29 +08:00
2026-08-30 15:44:04 +08:00
2026-09-06 13:46:29 +08:00
2026-09-01 22:24:29 +08:00
2026-09-03 01:38:54 +08:00
2026-09-01 22:24:29 +08:00
2026-09-14 01:28:46 +08:00
2026-08-30 17:57:12 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-03 15:30:11 +08:00
2026-09-01 21:28:15 +08:00
2026-09-02 04:09:11 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-01 22:24:29 +08:00
2026-09-03 01:38:54 +08:00
2026-09-01 22:24:29 +08:00
2026-09-07 10:20:03 +00:00
2026-08-31 01:13:07 +08:00
2026-09-03 01:38:54 +08:00
2026-09-02 04:09:11 +08:00
2026-09-06 13:46:29 +08:00
2026-09-07 23:27:05 +08:00
2026-09-01 22:24:29 +08:00
2026-09-01 22:24:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-10 23:55:18 +08:00
2026-09-06 13:46:29 +08:00
2026-09-01 20:16:46 +08:00
2026-09-02 04:09:11 +08:00
2026-09-10 23:45:21 +08:00
2026-09-06 13:46:29 +08:00
2026-08-31 01:13:07 +08:00
2026-09-11 04:39:34 +08:00
2026-09-11 04:39:34 +08:00
2026-09-11 04:39:25 +08:00
2026-09-11 04:39:34 +08:00
2026-08-31 01:13:07 +08:00
2026-09-11 04:39:34 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00