Repository navigation
Commit e6a074d
committed
test(vite-rsc-demo): drop loading() from the product detail route
The route-level loading() boundary made every same-route re-render swap
the whole product page for the skeleton — visibly on ?tab= navigations,
where the handler re-runs to render the other tab while BOTH loaders and
the route predicate are revalidate-false (nothing refetches; only the
content promise is fresh). Without loading() the commit holds the
current content until the new tab's content is ready — no flash. This is
the recommended shape under read-site useLoader suspension: inline
Suspense at actual data reads, transition() for animated holds,
route-level loading() reserved for a deliberate first-paint skeleton.1 parent cf452b9 commit e6a074d
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
| |||
0 commit comments