@nuxt/docs-nightly 4.1.2-29291955.4b466816 → 4.1.2-29293212.eb8d7797
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,7 +88,7 @@ Make sure to install the Pinia module with `npx nuxt module add pinia` or follow
|
|
|
88
88
|
::
|
|
89
89
|
|
|
90
90
|
::code-group
|
|
91
|
-
```ts [stores/website.ts]
|
|
91
|
+
```ts [app/stores/website.ts]
|
|
92
92
|
export const useWebsiteStore = defineStore('websiteStore', {
|
|
93
93
|
state: () => ({
|
|
94
94
|
name: '',
|
|
@@ -133,6 +133,10 @@ Nuxt supports this using lazy (or delayed) hydration, allowing you to control wh
|
|
|
133
133
|
|
|
134
134
|
Nuxt provides a range of built-in hydration strategies. Only one strategy can be used per lazy component.
|
|
135
135
|
|
|
136
|
+
::note
|
|
137
|
+
Any prop change on a lazily hydrated component will trigger hydration immediately. (e.g., changing a prop on a component with `hydrate-never` will cause it to hydrate)
|
|
138
|
+
::
|
|
139
|
+
|
|
136
140
|
::warning
|
|
137
141
|
Currently Nuxt's built-in lazy hydration only works in single-file components (SFCs), and requires you to define the prop in the template (rather than spreading an object of props via `v-bind`). It also does not work with direct imports from `#components`.
|
|
138
142
|
::
|