We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41339fe commit b41a2a8Copy full SHA for b41a2a8
packages/qwik/src/core/use/use-resource.ts
@@ -49,9 +49,12 @@ export interface ResourceOptions {
49
*
50
* The status can be one of the following:
51
52
- * - 'pending' - the data is not yet available.
53
- * - 'resolved' - the data is available.
54
- * - 'rejected' - the data is not available due to an error or timeout.
+ * - `pending` - the data is not yet available.
+ * - `resolved` - the data is available.
+ * - `rejected` - the data is not available due to an error or timeout.
55
+ *
56
+ * Avoid using a `try/catch` statement in `useResource$`. If you catch the error instead of passing
57
+ * it, the resource status will never be `rejected`.
58
59
* ### Example
60
0 commit comments