You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: This project uses @znck/prop-types which generates tree shakeable component prop definitions but it requires process.env.NODE_ENV to replaced with "production" to work effectively. See @znck/prop-types's documentation to know more.
Examples of using Hydrate in a Vue component, which also
documents the different options provided:
<template><div><!-- Hydrate when user clicks. --><Hydrateon-click><MyComponent/><MyComponent/><MyComponent/></Hydrate><!-- Just in time hydration. When user hovers over content --><Hydrateon-hover>
...
</Hydrate><!-- Hydrate on any event --><Hydrateon="fullscreen">
...
</Hydrate><!-- or events --><Hydrate:on="['fullscreen', 'mousedown']">
...
</Hydrate><!-- When user hover over or keyboard focus into. --><Hydrateon-interaction>
...
</Hydrate><!-- Requires IntersectionObserver. Polyfill not included. --><Hydratewhen-visible>
...
</Hydrate><!-- Requires requestIdleCallback. Polyfill not included. --><Hydratewhen-idle>
...
</Hydrate><!-- Only in SSR. --><Hydratessr-only>
...
</Hydrate><!-- Scheduled hydration. In 2s of initial render. --><Hydrate:with-delay="2000">
...
</Hydrate><!-- Controlled hydration --><Hydrate:force="isItReady">
...
</Hydrate></div></template>