Skip to content

Commit

Permalink
docs: Update use-resource.ts (QwikDev#6402)
Browse files Browse the repository at this point in the history
* Update use-resource.ts

Duplicates the text changes that were approved for the core readme in this PR: https://github.com/QwikDev/qwik/pull/6354/files
  • Loading branch information
greatgraphicdesign authored May 27, 2024
1 parent 41339fe commit b41a2a8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/qwik/src/core/use/use-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ export interface ResourceOptions {
*
* The status can be one of the following:
*
* - 'pending' - the data is not yet available.
* - 'resolved' - the data is available.
* - '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.
*
* Avoid using a `try/catch` statement in `useResource$`. If you catch the error instead of passing
* it, the resource status will never be `rejected`.
*
* ### Example
*
Expand Down

0 comments on commit b41a2a8

Please sign in to comment.