From 694758e3524bac8b6e67292ce679ac0d3f144e5a Mon Sep 17 00:00:00 2001 From: cunzaizhuyi <877824709@qq.com> Date: Wed, 8 Mar 2023 20:08:51 +0800 Subject: [PATCH] fix(docs): two error reference to usebrowservisibletask (#3300) --- packages/docs/src/routes/docs/components/overview/index.mdx | 2 +- packages/docs/src/routes/tutorial/events/synchronous/index.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docs/src/routes/docs/components/overview/index.mdx b/packages/docs/src/routes/docs/components/overview/index.mdx index d27955f899f..75af086d199 100644 --- a/packages/docs/src/routes/docs/components/overview/index.mdx +++ b/packages/docs/src/routes/docs/components/overview/index.mdx @@ -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 diff --git a/packages/docs/src/routes/tutorial/events/synchronous/index.mdx b/packages/docs/src/routes/tutorial/events/synchronous/index.mdx index 5d719669f36..396ecba3ba0 100644 --- a/packages/docs/src/routes/tutorial/events/synchronous/index.mdx +++ b/packages/docs/src/routes/tutorial/events/synchronous/index.mdx @@ -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).