nuxt-lazy-hydrate

This module is a wrapper around Vue 3 Lazy Hydration Plugin for Nuxt 3.
331,369 108
Install
npm install nuxt-lazy-hydrate
Latest Version:1.0.0
Vue:3
License:MIT
Last Updated:Aug 2, 2023
Links: GitHub  ·  npm
Maintainer: baroshem

nuxt-lazy-hydrate

This module is a wrapper around Vue 3 Lazy Hydration Plugin for Nuxt 3.

Huge kudos to the package author and also to Markus Oberleihner for developing this amazing idea.

Make sure to give a star to both of these projects:

Setup

yarn add nuxt-lazy-hydrate # yarn
npm i nuxt-lazy-hydrate # npm

Usage

The only thing you need to do to use the module in the default configuration is to register the module in the modules array in nuxt.config.ts:

// nuxt.config.js

{
  modules: ["nuxt-lazy-hydrate"],
}

And that's it! You can now use the LazyHydrate component in your Nuxt app:

<template>
  <div>
    <NuxtLazyHydrate when-idle>
      <p>Nuxt module playground!</p>
    </NuxtLazyHydrate>
  </div>
</template>

For all configuration options of this component, please head out to Vue 3 Lazy Hydration Package

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

Related Packages

nuxt-lazy-hydration

Lazy hydration of server-side rendered Vue.js components

2,795
vue-lazy-hydration

Lazy Hydration of Server-Side Rendered Vue.js Components

771,759 1,187
vue3-lazy-hydration

Lazy Hydration for Vue 3 SSR

689,047 161
nuxt-hydration-gate

Mark Nuxt app hydration with a DOM attribute for CSS, scripts, and end-to-end te...

211 0
@verbaly/nuxt

Nuxt integration for Verbaly: zero-config module with per-request locale negotia...

8,706 4

Version History

Version Released License
1.0.0 MIT
0.1.0 MIT