Skip to content

Commit

Permalink
docs: Update components/tasks index.mdx add useTask async note (#6267)
Browse files Browse the repository at this point in the history
Co-authored-by: PatrickJS <github@patrickjs.com>
  • Loading branch information
Jemsco and PatrickJS committed May 7, 2024
1 parent 1f9f6d0 commit db03fd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Tasks can also be used to perform work when a component state changes. In this c

Sometimes a task needs to run only on the browser and after rendering, in that case, you should use [`useVisibleTask$()`](#usevisibletask).

Sometimes a task should fetch data asynchronously and produce a signal (and not block rendering), in that case, you should use [`useResource$()`](/docs/components/state/#useresource).
> **Note**: If you need to fetch data asynchronously and not block rendering, you should use [`useResource$()`](/docs/components/state/#useresource). [`useResource$()`](/docs/components/state/#useresource) does not block rendering while the resource is being resolved.
## Lifecycle
Resumability is "Lazy execution", it's the ability to build the "framework state" (component boundaries, etc) on the server, and have it exist on the client without re-executing the framework again.
Expand Down

0 comments on commit db03fd4

Please sign in to comment.