hydrationCanBeAborted
// +config.js
export default {
// Default value: false
hydrationCanBeAborted: true
}
The
hydrationCanBeAborted
setting only applies if you enabled Client Routing.
Whether your UI framework allows the hydration to be aborted.
Setting hydrationCanBeAborted
to true
tells Vike that the hydration can be aborted when the user clicks on a link before the hydration has finished.
React users can (and should) set hydrationCanBeAborted
to true
.
vike-react
already setshydrationCanBeAborted
totrue
on your behalf.
Vue crashes if the hydration is aborted (see vuejs/vue#13235), thus hydrationCanBeAborted
must be set to false
.
vike-vue
already setshydrationCanBeAborted
tofalse
on your behalf.