2024-01-19 21:43:19 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<LazyNCompAll message="lazy-named-comp-all" />
|
|
|
|
<LazyNCompClient message="lazy-named-comp-client" />
|
|
|
|
<LazyNCompServer message="lazy-named-comp-server" />
|
2024-06-15 05:53:03 +00:00
|
|
|
<LazyEventDelayedEvent id="lazyevent" />
|
2024-06-17 20:45:53 +00:00
|
|
|
<LazyEventView />
|
2024-08-28 13:26:59 +00:00
|
|
|
<LazyVisibleDelayedVisible />
|
2024-08-25 10:53:29 +00:00
|
|
|
<LazyNeverDelayedNever />
|
2024-06-16 07:11:03 +00:00
|
|
|
<LazyEventDelayedEvent
|
2024-06-16 07:08:36 +00:00
|
|
|
id="lazyevent2"
|
2024-06-21 21:20:01 +00:00
|
|
|
:hydrate="createEventLoader(['click'])"
|
2024-06-16 07:08:36 +00:00
|
|
|
/>
|
2024-08-25 10:53:29 +00:00
|
|
|
<LazyIfDelayedCondition id="lazycondition" />
|
|
|
|
<button
|
|
|
|
id="conditionbutton"
|
|
|
|
@click="state++"
|
|
|
|
/>
|
|
|
|
<LazyIfDelayedCondition
|
|
|
|
id="lazycondition2"
|
|
|
|
:hydrate="state > 1"
|
|
|
|
/>
|
2024-06-02 21:02:31 +00:00
|
|
|
<LazyIdleDelayedNetwork />
|
2024-06-10 07:41:49 +00:00
|
|
|
<div style="height:3000px">
|
2024-04-08 14:39:42 +00:00
|
|
|
This is a very tall div
|
|
|
|
</div>
|
2024-06-02 21:02:31 +00:00
|
|
|
<LazyVisibleDelayedVisible />
|
2024-01-19 21:43:19 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2024-08-25 10:53:29 +00:00
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
const state = useState('delayedHydrationCondition', () => 1)
|
|
|
|
</script>
|