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-11-08 21:13:04 +00:00
|
|
|
<LazyDelayedEvent
|
|
|
|
id="lazyevent"
|
|
|
|
hydrate:event
|
|
|
|
/>
|
2024-06-17 20:45:53 +00:00
|
|
|
<LazyEventView />
|
2024-11-08 21:13:04 +00:00
|
|
|
<LazyDelayedVisible hydrate:visible />
|
|
|
|
<LazyDelayedNever hydrate:never />
|
|
|
|
<LazyDelayedEvent
|
2024-06-16 07:08:36 +00:00
|
|
|
id="lazyevent2"
|
2024-11-08 21:13:04 +00:00
|
|
|
:hydrate:event="['click']"
|
|
|
|
/>
|
|
|
|
<LazyDelayedCondition
|
|
|
|
id="lazycondition"
|
|
|
|
hydrate:if
|
2024-06-16 07:08:36 +00:00
|
|
|
/>
|
2024-08-25 10:53:29 +00:00
|
|
|
<button
|
|
|
|
id="conditionbutton"
|
|
|
|
@click="state++"
|
|
|
|
/>
|
2024-11-08 21:13:04 +00:00
|
|
|
<LazyDelayedCondition
|
2024-08-25 10:53:29 +00:00
|
|
|
id="lazycondition2"
|
2024-11-08 21:13:04 +00:00
|
|
|
:hydrate:if="state > 1"
|
2024-08-25 10:53:29 +00:00
|
|
|
/>
|
2024-11-08 21:13:04 +00:00
|
|
|
<LazyDelayedNetwork hydrate:idle />
|
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-11-08 21:13:04 +00:00
|
|
|
<LazyDelayedVisible hydrate:visible />
|
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>
|