mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: fix createIdleLoader usage example
This commit is contained in:
parent
1a1fe463df
commit
309726060c
@ -172,7 +172,7 @@ If you would like to override the default hydration triggers when dealing with d
|
|||||||
```vue [pages/index.vue]
|
```vue [pages/index.vue]
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<LazyIdleMyComponent :hydrate="createIdleLoader({timeout: 3000})"/>
|
<LazyIdleMyComponent :hydrate="createIdleLoader(3000)"/>
|
||||||
<LazyVisibleMyComponent :hydrate="createVisibleLoader({threshold: 0.2})"/>
|
<LazyVisibleMyComponent :hydrate="createVisibleLoader({threshold: 0.2})"/>
|
||||||
<LazyEventMyComponent :hydrate="createEventLoader(['click','mouseover'])"/>
|
<LazyEventMyComponent :hydrate="createEventLoader(['click','mouseover'])"/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user