Skip to content

Commit caefbb5

Browse files
committed
docs: route-loader rectifications
1 parent db563c4 commit caefbb5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • packages/docs/src/routes/docs/(qwikrouter)/route-loader

packages/docs/src/routes/docs/(qwikrouter)/route-loader/index.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ contributors:
1616
- gioboa
1717
- Varixo
1818
- wmertens
19-
updated_at: '2026-05-10T00:00:00Z'
19+
- maiieul
20+
updated_at: '2026-06-14T00:00:00Z'
2021
created_at: '2023-03-20T23:45:13Z'
2122
---
2223

@@ -88,8 +89,6 @@ export default component$(() => {
8889
});
8990
```
9091

91-
<Note>Don't read `signal.value` before checking `signal.error`. While the signal is in error state, accessing `.value` re-throws the error.</Note>
92-
9392
### Signaling failure from a loader
9493

9594
Loaders signal failure two ways. Both put the signal into error state with `signal.error` set to a `ServerError` carrying `.status` (HTTP status) and `.data` (the payload):
@@ -223,7 +222,7 @@ export const useSubscription = routeLoader$(
223222

224223
### `serializationStrategy`
225224

226-
By default the HTML response does **not** embed loader data. On hydration, the loader signal is empty until the browser fetches the JSON endpoint — meaning fast first paint, but a brief loading state for code that reads `.value` immediately.
225+
By default the HTML response does **not** embed loader data. This means that the loader signal is empty until the browser fetches the JSON endpoint — meaning fast first paint, but a brief loading state for code that reads `.value` immediately.
227226

228227
| Value | Behavior |
229228
| ---------- | ----------------------------------------------------------------------- |

0 commit comments

Comments
 (0)