Skip to content

Commit e975c9a

Browse files
committed
docs(readme): add link to Nuxt 3 plugin repository
Closes #52
1 parent e94072e commit e975c9a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,7 @@ app.component('LazyHydrate', LazyHydrationWrapper);
4040

4141
#### Global import for Nuxt 3
4242

43-
Create a [Nuxt 3 plugin](https://v3.nuxtjs.org/guide/directory-structure/plugins/) inside the `plugins` directory. The filename doesn't matter as Nuxt [auto-imports](https://v3.nuxtjs.org/guide/directory-structure/plugins/#which-files-are-registered) all top-level files of this directory.
44-
45-
```js
46-
// plugins/lazy-hydration.ts
47-
import { LazyHydrationWrapper } from 'vue3-lazy-hydration';
48-
49-
export default defineNuxtPlugin((nuxtApp) => {
50-
// for custom registered name see Vue example above
51-
nuxtApp.vueApp.component('LazyHydrationWrapper', LazyHydrationWrapper);
52-
});
53-
```
43+
Thanks to [Baroshem](https://github.com/Baroshem) the Nuxt 3 plugin [nuxt-lazy-hydrate](https://github.com/Baroshem/nuxt-lazy-hydrate) is available for this purpose.
5444

5545
## Usage
5646

0 commit comments

Comments
 (0)