Skip to content

Commit

Permalink
fix(docs): two error reference to usebrowservisibletask (QwikDev#3300)
Browse files Browse the repository at this point in the history
  • Loading branch information
cunzaizhuyi authored Mar 8, 2023
1 parent bc0d9a6 commit 694758e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ The Optimizer splits Qwik components into the host element and the behavior of t

- [`useTask$()`](../lifecycle/index.mdx#usetask) - defines a callback that will be called before render and/or when a watched store changes
- [`useResource$()`](../resource/index.mdx) - creates a resource to asyncronously load data
- [`useVisibleTask$()`](../lifecycle/index.mdx#usebrowservisibletask) - defines a callback that will be called after render in the client only (browser)
- [`useVisibleTask$()`](../lifecycle/index.mdx#usevisibletask) - defines a callback that will be called after render in the client only (browser)

### Other

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ While not a common use case, you may occasionally need to process events synchro

Since Qwik processes asynchronously by default, your code must be explicitly configured for synchronous calls. This example shows how to eagerly load an event handler that processes a synchronous event.

> **Your task:** Convert the `onClick$` from asynchronous event to synchronous event by using [`useVisibleTask$`](https://qwik.builder.io/docs/components/lifecycle/#usebrowservisibletask) lifecycle and [normal event registration](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).
> **Your task:** Convert the `onClick$` from asynchronous event to synchronous event by using [`useVisibleTask$`](https://qwik.builder.io/docs/components/lifecycle/#usevisibletask) lifecycle and [normal event registration](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).

0 comments on commit 694758e

Please sign in to comment.