Edit this page

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 sets hydrationCanBeAborted to true on your behalf.

Vue crashes if the hydration is aborted (see vuejs/vue#13235), thus hydrationCanBeAborted must be set to false.

vike-vue already sets hydrationCanBeAborted to false on your behalf.

See also