hydrationCanBeAborted
// +config.js
export default {
hydrationCanBeAborted: true
}// +config.ts
import type { Config } from 'vike/types'
export default {
hydrationCanBeAborted: true
} satisfies ConfigThe
hydrationCanBeAbortedsetting 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-reactalready setshydrationCanBeAbortedtotrueon your behalf.
Vue crashes if the hydration is aborted (see vuejs/vue#13235), thus hydrationCanBeAborted must be set to false.
vike-vuealready setshydrationCanBeAbortedtofalseon your behalf.